Package org.apereo.cas.authentication
Interface PrePostAuthenticationHandler
- All Superinterfaces:
AuthenticationHandler,org.apereo.cas.util.NamedObject,org.springframework.core.Ordered
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
This is
PrePostAuthenticationHandler.- Since:
- 5.1.0
-
Field Summary
Fields inherited from interface org.apereo.cas.authentication.AuthenticationHandler
SUCCESSFUL_AUTHENTICATION_HANDLERSFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Method Summary
Modifier and TypeMethodDescriptionpostAuthenticate(Credential credential, AuthenticationHandlerExecutionResult result) Template method to perform arbitrary post-authentication actions.default booleanpreAuthenticate(Credential credential) Template method to perform arbitrary pre-authentication actions.Methods inherited from interface org.apereo.cas.authentication.AuthenticationHandler
authenticate, getOrder, getState, supports, supportsMethods inherited from interface org.apereo.cas.util.NamedObject
getName
-
Method Details
-
preAuthenticate
Template method to perform arbitrary pre-authentication actions.- Parameters:
credential- the Credential supplied- Returns:
- true if authentication should continue, false otherwise.
-
postAuthenticate
default AuthenticationHandlerExecutionResult postAuthenticate(Credential credential, AuthenticationHandlerExecutionResult result) Template method to perform arbitrary post-authentication actions.- Parameters:
credential- the supplied credentialresult- the result of the authentication attempt.- Returns:
- An authentication handler result that MAY be different or modified from that provided.
-