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
ConstructorsConstructorDescriptionInstantiates a new windows authentication provider. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.core.Authenticationauthenticate(org.springframework.security.core.Authentication authentication) waffle.windows.auth.IWindowsAuthProviderGets the auth provider.org.springframework.security.core.GrantedAuthorityGets the default granted authority.Gets the granted authority factory.waffle.windows.auth.PrincipalFormatGets the principal format.waffle.windows.auth.PrincipalFormatGets the role format.booleanChecks if is allow guest login.voidsetAllowGuestLogin(boolean value) Sets the allow guest login.voidsetAuthProvider(waffle.windows.auth.IWindowsAuthProvider value) Sets 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.voidsetPrincipalFormatEnum(waffle.windows.auth.PrincipalFormat value) Sets the principal format enum.voidsetRoleFormat(String value) Sets the role format.voidsetRoleFormatEnum(waffle.windows.auth.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
-
getPrincipalFormat
public waffle.windows.auth.PrincipalFormat getPrincipalFormat()Gets the principal format.- Returns:
- the principal format
-
setPrincipalFormatEnum
public void setPrincipalFormatEnum(waffle.windows.auth.PrincipalFormat value) Sets the principal format enum.- Parameters:
value- the new principal format enum
-
setPrincipalFormat
Sets the principal format.- Parameters:
value- the new principal format
-
getRoleFormat
public waffle.windows.auth.PrincipalFormat getRoleFormat()Gets the role format.- Returns:
- the role format
-
setRoleFormatEnum
public void setRoleFormatEnum(waffle.windows.auth.PrincipalFormat value) 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
public waffle.windows.auth.IWindowsAuthProvider getAuthProvider()Gets the auth provider.- Returns:
- the auth provider
-
setAuthProvider
public void setAuthProvider(waffle.windows.auth.IWindowsAuthProvider value) 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
-