@Component(value="cuba_RememberMeLoginProvider") public class RememberMeLoginProvider extends java.lang.Object implements LoginProvider, org.springframework.core.Ordered
HIGHEST_PLATFORM_PRECEDENCE, LOWEST_PLATFORM_PRECEDENCE
Constructor and Description |
---|
RememberMeLoginProvider() |
Modifier and Type | Method and Description |
---|---|
int |
getOrder() |
AuthenticationDetails |
login(Credentials credentials)
Authenticates a user and provides authentication details.
|
boolean |
supports(java.lang.Class<?> credentialsClass)
Checks if this provider supports passed credentials class or not.
|
@Nullable public AuthenticationDetails login(Credentials credentials) throws LoginException
LoginProvider
login
in interface LoginProvider
credentials
- credentialsLoginException
- if authentication failspublic boolean supports(java.lang.Class<?> credentialsClass)
LoginProvider
supports
in interface LoginProvider
credentialsClass
- credentials classCredentials
object.public int getOrder()
getOrder
in interface org.springframework.core.Ordered