@Component(value="cuba_LoginPasswordAuthenticationProvider") public class LoginPasswordAuthenticationProvider extends AbstractAuthenticationProvider implements org.springframework.core.Ordered
| Modifier and Type | Field and Description |
|---|---|
protected PasswordEncryption |
passwordEncryption |
protected java.util.List<UserAccessChecker> |
userAccessCheckers |
protected java.util.List<UserCredentialsChecker> |
userCredentialsCheckers |
protected UserSessionManager |
userSessionManager |
messages, MSG_PACK, persistenceHIGHEST_PRECEDENCE, LOWEST_PRECEDENCEHIGHEST_PLATFORM_PRECEDENCE, LOWEST_PLATFORM_PRECEDENCE| Constructor and Description |
|---|
LoginPasswordAuthenticationProvider(Persistence persistence,
Messages messages) |
| Modifier and Type | Method and Description |
|---|---|
AuthenticationDetails |
authenticate(Credentials credentials)
Authenticates a user and provides authentication details.
|
protected void |
checkUserAccess(Credentials loginAndPassword,
AuthenticationDetails authenticationDetails) |
protected void |
checkUserCredentials(Credentials credentials) |
protected UserSession |
createSession(LoginPasswordCredentials credentials,
User user,
java.util.Locale userLocale) |
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 java.util.List<UserAccessChecker> userAccessCheckers
@Inject protected java.util.List<UserCredentialsChecker> userCredentialsCheckers
@Inject protected UserSessionManager userSessionManager
@Inject protected PasswordEncryption passwordEncryption
@Inject public LoginPasswordAuthenticationProvider(Persistence persistence, Messages messages)
public AuthenticationDetails authenticate(Credentials credentials) throws LoginException
AuthenticationProviderauthenticate in interface AuthenticationProvidercredentials - credentialsLoginException - if authentication failsprotected UserSession createSession(LoginPasswordCredentials credentials, User user, java.util.Locale userLocale) throws LoginException
LoginExceptionprotected void checkUserCredentials(Credentials credentials) throws LoginException
LoginExceptionprotected void checkUserAccess(Credentials loginAndPassword, AuthenticationDetails authenticationDetails) 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