public class AzureAuthenticatorAuthenticationHandler extends AbstractPreAndPostProcessingAuthenticationHandler
principalFactory, servicesManager
SUCCESSFUL_AUTHENTICATION_HANDLERS
Constructor and Description |
---|
AzureAuthenticatorAuthenticationHandler(java.lang.String name,
ServicesManager servicesManager,
PrincipalFactory principalFactory,
net.phonefactor.pfsdk.PFAuth azureAuthenticatorInstance,
AzureAuthenticatorAuthenticationRequestBuilder builder) |
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 AzureAuthenticatorAuthenticationHandler(java.lang.String name, ServicesManager servicesManager, PrincipalFactory principalFactory, net.phonefactor.pfsdk.PFAuth azureAuthenticatorInstance, AzureAuthenticatorAuthenticationRequestBuilder builder)
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.