@Component(value="cuba_TrustedClientAuthenticationProvider") public class TrustedClientAuthenticationProvider extends AbstractAuthenticationProvider implements org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCEHIGHEST_PLATFORM_PRECEDENCE, LOWEST_PLATFORM_PRECEDENCE| Constructor and Description |
|---|
TrustedClientAuthenticationProvider(Persistence persistence,
Messages messages) |
| Modifier and Type | Method and Description |
|---|---|
AuthenticationDetails |
authenticate(Credentials credentials)
Authenticates a user and provides authentication details.
|
int |
getOrder() |
boolean |
supports(java.lang.Class<?> credentialsClass)
Checks if this provider supports passed credentials class or not.
|
@Inject public TrustedClientAuthenticationProvider(Persistence persistence, Messages messages)
public AuthenticationDetails authenticate(Credentials credentials) throws LoginException
AuthenticationProviderauthenticate in interface AuthenticationProvidercredentials - credentialsLoginException - if authentication failspublic boolean supports(java.lang.Class<?> credentialsClass)
AuthenticationProvidersupports in interface AuthenticationProvidercredentialsClass - credentials classCredentials object.public int getOrder()
getOrder in interface org.springframework.core.Ordered