public class DefaultAuthenticationContextValidator
extends java.lang.Object
implements org.apereo.cas.authentication.AuthenticationContextValidator
DefaultAuthenticationContextValidator is responsible for evaluating an authentication
object to see whether it satisfied a requested authentication context.| Constructor and Description |
|---|
DefaultAuthenticationContextValidator(java.lang.String contextAttribute,
java.lang.String failureMode,
java.lang.String authnAttributeName) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAuthenticationContextAttribute() |
org.apache.commons.lang3.tuple.Pair<java.lang.Boolean,java.util.Optional<org.apereo.cas.services.MultifactorAuthenticationProvider>> |
validate(org.apereo.cas.authentication.Authentication authentication,
java.lang.String requestedContext,
org.apereo.cas.services.RegisteredService service)
If the authentication event is established as part trusted/device browser
such that MFA was skipped, allow for validation to execute successfully.
|
public DefaultAuthenticationContextValidator(java.lang.String contextAttribute,
java.lang.String failureMode,
java.lang.String authnAttributeName)
public java.lang.String getAuthenticationContextAttribute()
public org.apache.commons.lang3.tuple.Pair<java.lang.Boolean,java.util.Optional<org.apereo.cas.services.MultifactorAuthenticationProvider>> validate(org.apereo.cas.authentication.Authentication authentication,
java.lang.String requestedContext,
org.apereo.cas.services.RegisteredService service)
validate in interface org.apereo.cas.authentication.AuthenticationContextValidatorauthentication - the authenticationrequestedContext - the requested contextservice - the service