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.
- Author:
- dblock[at]dblock[dot]org
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new windows authentication provider. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.core.Authenticationauthenticate(org.springframework.security.core.Authentication authentication) Gets the auth provider.org.springframework.security.core.GrantedAuthorityGets the default granted authority.Gets the granted authority factory.Gets the principal format.Gets the role format.booleanChecks if is allow guest login.voidsetAllowGuestLogin(boolean value) Sets the allow guest login.voidSets the auth provider.voidsetDefaultGrantedAuthority(org.springframework.security.core.GrantedAuthority value) Sets the default granted authority.voidSets the granted authority factory.voidsetPrincipalFormat(String value) Sets the principal format.voidSets the principal format enum.voidsetRoleFormat(String value) Sets the role format.voidsetRoleFormatEnum(PrincipalFormat value) Sets the role format enum.booleanSupports.
-
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:
authenticatein interfaceorg.springframework.security.authentication.AuthenticationProvider
-
supports
Supports.- Specified by:
supportsin 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
-