public class AuthyAuthenticationHandler extends AbstractPreAndPostProcessingAuthenticationHandler
principalFactory, servicesManager
SUCCESSFUL_AUTHENTICATION_HANDLERS
Constructor and Description |
---|
AuthyAuthenticationHandler(java.lang.String name,
ServicesManager servicesManager,
PrincipalFactory principalFactory,
AuthyClientInstance instance,
boolean forceVerification) |
Modifier and Type | Method and Description |
---|---|
protected HandlerResult |
doAuthentication(Credential credential)
Performs the details of authentication and returns an authentication handler result on success.
|
boolean |
supports(Credential credential)
Determines whether the handler has the capability to authenticate the given credential.
|
authenticate, createHandlerResult
getName, getOrder
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
postAuthenticate, preAuthenticate
getName
public AuthyAuthenticationHandler(java.lang.String name, ServicesManager servicesManager, PrincipalFactory principalFactory, AuthyClientInstance instance, boolean forceVerification)
protected HandlerResult doAuthentication(Credential credential) throws java.security.GeneralSecurityException, PreventedException
AbstractPreAndPostProcessingAuthenticationHandler
doAuthentication
in class AbstractPreAndPostProcessingAuthenticationHandler
credential
- Credential to authenticate.java.security.GeneralSecurityException
- On authentication failure that is thrown out to the caller of
AbstractPreAndPostProcessingAuthenticationHandler.authenticate(Credential)
.PreventedException
- On the indeterminate case when authentication is prevented.public boolean supports(Credential credential)
AuthenticationHandler
AuthenticationHandler.authenticate(Credential)
method MUST be capable of processing a given credential if
supports
returns true on the same credential.credential
- The credential to check.