Package waffle.spring
Class WindowsAuthenticationProvider
java.lang.Object
waffle.spring.WindowsAuthenticationProvider
- All Implemented Interfaces:
org.springframework.security.authentication.AuthenticationProvider
public class WindowsAuthenticationProvider
extends Object
implements org.springframework.security.authentication.AuthenticationProvider
A Waffle authentication provider for Spring-security.
-
Constructor Summary
ConstructorDescriptionInstantiates a new windows authentication provider. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.core.Authentication
authenticate
(org.springframework.security.core.Authentication authentication) Gets the auth provider.org.springframework.security.core.GrantedAuthority
Gets the default granted authority.Gets the granted authority factory.Gets the principal format.Gets the role format.boolean
Checks if is allow guest login.void
setAllowGuestLogin
(boolean value) Sets the allow guest login.void
Sets the auth provider.void
setDefaultGrantedAuthority
(org.springframework.security.core.GrantedAuthority value) Sets the default granted authority.void
Sets the granted authority factory.void
setPrincipalFormat
(String value) Sets the principal format.void
Sets the principal format enum.void
setRoleFormat
(String value) Sets the role format.void
setRoleFormatEnum
(PrincipalFormat value) Sets the role format enum.boolean
Supports.
-
Constructor Details
-
WindowsAuthenticationProvider
public WindowsAuthenticationProvider()Instantiates a new windows authentication provider.
-
-
Method Details
-
authenticate
public org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication) - Specified by:
authenticate
in interfaceorg.springframework.security.authentication.AuthenticationProvider
-
supports
Supports.- Specified by:
supports
in interfaceorg.springframework.security.authentication.AuthenticationProvider
- Parameters:
authentication
- the authentication- Returns:
- true, if successful
-
getPrincipalFormat
Gets the principal format.- Returns:
- the principal format
-
setPrincipalFormatEnum
Sets the principal format enum.- Parameters:
value
- the new principal format enum
-
setPrincipalFormat
Sets the principal format.- Parameters:
value
- the new principal format
-
getRoleFormat
Gets the role format.- Returns:
- the role format
-
setRoleFormatEnum
Sets the role format enum.- Parameters:
value
- the new role format enum
-
setRoleFormat
Sets the role format.- Parameters:
value
- the new role format
-
isAllowGuestLogin
public boolean isAllowGuestLogin()Checks if is allow guest login.- Returns:
- true, if is allow guest login
-
setAllowGuestLogin
public void setAllowGuestLogin(boolean value) Sets the allow guest login.- Parameters:
value
- the new allow guest login
-
getAuthProvider
Gets the auth provider.- Returns:
- the auth provider
-
setAuthProvider
Sets the auth provider.- Parameters:
value
- the new auth provider
-
getGrantedAuthorityFactory
Gets the granted authority factory.- Returns:
- the granted authority factory
-
setGrantedAuthorityFactory
Sets the granted authority factory.- Parameters:
value
- the new granted authority factory
-
getDefaultGrantedAuthority
public org.springframework.security.core.GrantedAuthority getDefaultGrantedAuthority()Gets the default granted authority.- Returns:
- the default granted authority
-
setDefaultGrantedAuthority
public void setDefaultGrantedAuthority(org.springframework.security.core.GrantedAuthority value) Sets the default granted authority.- Parameters:
value
- the new default granted authority
-