@Component(value="cuba_AnonymousAuthenticationProvider") public class AnonymousAuthenticationProvider extends AbstractAuthenticationProvider implements org.springframework.core.Ordered
| Modifier and Type | Field and Description |
|---|---|
protected GlobalConfig |
globalConfig |
protected ServerConfig |
serverConfig |
protected UserSessionManager |
userSessionManager |
messages, MSG_PACK, persistenceHIGHEST_PRECEDENCE, LOWEST_PRECEDENCEHIGHEST_PLATFORM_PRECEDENCE, LOWEST_PLATFORM_PRECEDENCE| Constructor and Description |
|---|
AnonymousAuthenticationProvider(Persistence persistence,
Messages messages) |
| Modifier and Type | Method and Description |
|---|---|
AuthenticationDetails |
authenticate(Credentials credentials)
Authenticates a user and provides authentication details.
|
protected UserSession |
createSession(AnonymousUserCredentials credentials,
User user,
java.util.Locale userLocale,
java.lang.String securityScope) |
protected UserSession |
createSession(java.util.UUID sessionId,
AnonymousUserCredentials credentials,
User user,
java.util.Locale userLocale,
java.lang.String securityScope) |
protected java.util.UUID |
generateAnonymousSessionId(java.lang.String securityScope) |
int |
getOrder() |
boolean |
supports(java.lang.Class<?> credentialsClass)
Checks if this provider supports passed credentials class or not.
|
getExpiredRememberMeTokenMessage, getInvalidCredentialsMessage, getUserLocale, loadUser, loadUser, setClientSessionParams@Inject protected UserSessionManager userSessionManager
@Inject protected ServerConfig serverConfig
@Inject protected GlobalConfig globalConfig
@Inject public AnonymousAuthenticationProvider(Persistence persistence, Messages messages)
public AuthenticationDetails authenticate(Credentials credentials) throws LoginException
AuthenticationProviderauthenticate in interface AuthenticationProvidercredentials - credentialsLoginException - if authentication fails@Nullable
protected java.util.UUID generateAnonymousSessionId(@Nullable
java.lang.String securityScope)
protected UserSession createSession(AnonymousUserCredentials credentials, User user, java.util.Locale userLocale, java.lang.String securityScope) throws LoginException
LoginExceptionprotected UserSession createSession(java.util.UUID sessionId, AnonymousUserCredentials credentials, User user, java.util.Locale userLocale, java.lang.String securityScope) throws LoginException
LoginExceptionpublic boolean supports(java.lang.Class<?> credentialsClass)
AuthenticationProvidersupports in interface AuthenticationProvidercredentialsClass - credentials classCredentials object.public int getOrder()
getOrder in interface org.springframework.core.Ordered