public abstract class AbstractMultiFactorAuthenticationProtocolValidationSpecification
extends org.jasig.cas.validation.Cas20ProtocolValidationSpecification
MultiFactorServiceValidateController| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractMultiFactorAuthenticationProtocolValidationSpecification.WithoutProxy
An MFA validator that does not handles proxy authentications.
|
static class |
AbstractMultiFactorAuthenticationProtocolValidationSpecification.WithProxy
An MFA validator that handles proxy authentications.
|
| Constructor and Description |
|---|
AbstractMultiFactorAuthenticationProtocolValidationSpecification(boolean validateProxyAuthenticationRequests)
Constructor to spin up the validation spec instance.
|
AbstractMultiFactorAuthenticationProtocolValidationSpecification(String authnMethod)
Constructor to spin up the validation spec instance, requiring a particular
authentication method.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAuthenticationMethod() |
protected boolean |
isSatisfiedByInternal(org.jasig.cas.validation.Assertion assertion) |
void |
setAuthenticationMethod(String authnMethod) |
public AbstractMultiFactorAuthenticationProtocolValidationSpecification(boolean validateProxyAuthenticationRequests)
validateProxyAuthenticationRequests - flagpublic AbstractMultiFactorAuthenticationProtocolValidationSpecification(String authnMethod)
authnMethod - required authentication method to match against.public final void setAuthenticationMethod(String authnMethod)
public final String getAuthenticationMethod()
protected final boolean isSatisfiedByInternal(org.jasig.cas.validation.Assertion assertion)
Validate the requested authentication method for this validation request.
If the produced assertion cannot satisfy the authentication method requested,
an instance of UnacceptableMultiFactorAuthenticationMethodException will be thrown.
If the authentication method used by the assertion is not blank, but does not match
the requested authentication method, an instance of UnrecognizedMultiFactorAuthenticationMethodException
will be thrown.
Note: The current isSatisfiedByInternal(Assertion) method signature
only allows for returning of a boolean value indicating whether the assertion
can satisfy the requested protocol. This is not sufficient to fully explain the context
of a validation failure, as in the case of multifactor authentication, whether
the authentication method is unrecognized or unacceptable. In order to accommodate this,
and rather than changing the method signature to return more than just a boolean, the
implementation opts to throwing specific exceptions in order to indicate the context
of the failure. Exceptions are unchecked, yet are expected to be caught by the caller
in order to digest the failure.
isSatisfiedByInternal in class org.jasig.cas.validation.Cas20ProtocolValidationSpecificationUnacceptableMultiFactorAuthenticationMethodException,
UnrecognizedMultiFactorAuthenticationMethodExceptionCopyright © 2013-2015 Unicon Inc.. All Rights Reserved.