public class DefaultMultifactorAuthenticationProviderBypass extends java.lang.Object implements MultifactorAuthenticationProviderBypass
| Modifier and Type | Field and Description |
|---|---|
protected org.apereo.cas.configuration.model.support.mfa.MultifactorAuthenticationProviderBypassProperties |
bypassProperties
Bypass settings for this provider.
|
AUTHENTICATION_ATTRIBUTE_BYPASS_MFA, AUTHENTICATION_ATTRIBUTE_BYPASS_MFA_PROVIDER| Constructor and Description |
|---|
DefaultMultifactorAuthenticationProviderBypass(org.apereo.cas.configuration.model.support.mfa.MultifactorAuthenticationProviderBypassProperties bypassProperties) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
locateMatchingAttributeBasedOnAuthenticationAttributes(org.apereo.cas.configuration.model.support.mfa.MultifactorAuthenticationProviderBypassProperties bypass,
org.apereo.cas.authentication.Authentication authn)
Skip bypass and support event based on authentication attributes.
|
protected boolean |
locateMatchingAttributeBasedOnPrincipalAttributes(org.apereo.cas.configuration.model.support.mfa.MultifactorAuthenticationProviderBypassProperties bypass,
org.apereo.cas.authentication.principal.Principal principal)
Skip bypass and support event based on principal attributes.
|
protected boolean |
locateMatchingAttributeValue(java.lang.String attrName,
java.lang.String attrValue,
java.util.Map<java.lang.String,java.lang.Object> attributes)
Locate matching attribute value boolean.
|
protected boolean |
locateMatchingAttributeValue(java.lang.String attrName,
java.lang.String attrValue,
java.util.Map<java.lang.String,java.lang.Object> attributes,
boolean matchIfNoValueProvided)
Evaluate attribute rules for bypass.
|
protected boolean |
locateMatchingCredentialType(org.apereo.cas.authentication.Authentication authentication,
java.lang.String credentialClassType)
Locate matching credential type boolean.
|
protected boolean |
locateMatchingHttpRequest(org.apereo.cas.authentication.Authentication authentication,
javax.servlet.http.HttpServletRequest request)
Locate matching http request and determine if bypass should be enabled.
|
protected boolean |
locateMatchingRegisteredServiceForBypass(org.apereo.cas.authentication.Authentication authentication,
org.apereo.cas.services.RegisteredService registeredService)
Locate matching registered service property boolean.
|
boolean |
shouldMultifactorAuthenticationProviderExecute(org.apereo.cas.authentication.Authentication authentication,
org.apereo.cas.services.RegisteredService registeredService,
org.apereo.cas.services.MultifactorAuthenticationProvider provider,
javax.servlet.http.HttpServletRequest request)
Eval current bypass rules for the provider.
|
protected final org.apereo.cas.configuration.model.support.mfa.MultifactorAuthenticationProviderBypassProperties bypassProperties
public DefaultMultifactorAuthenticationProviderBypass(org.apereo.cas.configuration.model.support.mfa.MultifactorAuthenticationProviderBypassProperties bypassProperties)
public boolean shouldMultifactorAuthenticationProviderExecute(org.apereo.cas.authentication.Authentication authentication,
org.apereo.cas.services.RegisteredService registeredService,
org.apereo.cas.services.MultifactorAuthenticationProvider provider,
javax.servlet.http.HttpServletRequest request)
MultifactorAuthenticationProviderBypassshouldMultifactorAuthenticationProviderExecute in interface MultifactorAuthenticationProviderBypassauthentication - the authenticationregisteredService - the registered service in questionprovider - the providerrequest - the requestprotected boolean locateMatchingRegisteredServiceForBypass(org.apereo.cas.authentication.Authentication authentication,
org.apereo.cas.services.RegisteredService registeredService)
authentication - the authenticationregisteredService - the registered serviceprotected boolean locateMatchingCredentialType(org.apereo.cas.authentication.Authentication authentication,
java.lang.String credentialClassType)
authentication - the authenticationcredentialClassType - the credential class typeprotected boolean locateMatchingAttributeBasedOnAuthenticationAttributes(org.apereo.cas.configuration.model.support.mfa.MultifactorAuthenticationProviderBypassProperties bypass,
org.apereo.cas.authentication.Authentication authn)
bypass - the bypass settings for the provider.authn - the authnprotected boolean locateMatchingAttributeBasedOnPrincipalAttributes(org.apereo.cas.configuration.model.support.mfa.MultifactorAuthenticationProviderBypassProperties bypass,
org.apereo.cas.authentication.principal.Principal principal)
bypass - the bypass propertiesprincipal - the principalprotected boolean locateMatchingAttributeValue(java.lang.String attrName,
java.lang.String attrValue,
java.util.Map<java.lang.String,java.lang.Object> attributes)
attrName - the attr nameattrValue - the attr valueattributes - the attributesprotected boolean locateMatchingAttributeValue(java.lang.String attrName,
java.lang.String attrValue,
java.util.Map<java.lang.String,java.lang.Object> attributes,
boolean matchIfNoValueProvided)
attrName - the attr nameattrValue - the attr valueattributes - the attributesmatchIfNoValueProvided - the force match on valueprotected boolean locateMatchingHttpRequest(org.apereo.cas.authentication.Authentication authentication,
javax.servlet.http.HttpServletRequest request)
authentication - the authenticationrequest - the request