Class BaseMultifactorAuthenticationProviderBypassEvaluator
- java.lang.Object
-
- org.apereo.cas.authentication.bypass.BaseMultifactorAuthenticationProviderBypassEvaluator
-
- All Implemented Interfaces:
java.io.Serializable,org.apereo.cas.authentication.bypass.MultifactorAuthenticationProviderBypassEvaluator,org.springframework.core.Ordered
- Direct Known Subclasses:
AuthenticationMultifactorAuthenticationProviderBypassEvaluator,CredentialMultifactorAuthenticationProviderBypassEvaluator,GroovyMultifactorAuthenticationProviderBypassEvaluator,HttpRequestMultifactorAuthenticationProviderBypassEvaluator,NeverAllowMultifactorAuthenticationProviderBypassEvaluator,PrincipalMultifactorAuthenticationProviderBypassEvaluator,RegisteredServiceMultifactorAuthenticationProviderBypassEvaluator,RegisteredServicePrincipalAttributeMultifactorAuthenticationProviderBypassEvaluator,RestMultifactorAuthenticationProviderBypassEvaluator
public abstract class BaseMultifactorAuthenticationProviderBypassEvaluator extends java.lang.Object implements org.apereo.cas.authentication.bypass.MultifactorAuthenticationProviderBypassEvaluator- Since:
- 6.1.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BaseMultifactorAuthenticationProviderBypassEvaluator()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.util.Optional<org.apereo.cas.authentication.bypass.MultifactorAuthenticationProviderBypassEvaluator>belongsToMultifactorAuthenticationProvider(java.lang.String providerId)voidforgetBypass(org.apereo.cas.authentication.Authentication authentication)booleanisMultifactorAuthenticationBypassed(org.apereo.cas.authentication.Authentication authentication, java.lang.String requestedContext)protected static booleanlocateMatchingAttributeValue(java.lang.String attrName, java.lang.String attrValue, java.util.Map<java.lang.String,java.util.List<java.lang.Object>> attributes)Locate matching attribute value boolean.protected static booleanlocateMatchingAttributeValue(java.lang.String attrName, java.lang.String attrValue, java.util.Map<java.lang.String,java.util.List<java.lang.Object>> attributes, boolean matchIfNoValueProvided)Evaluate attribute rules for bypass.voidrememberBypass(org.apereo.cas.authentication.Authentication authentication, org.apereo.cas.authentication.MultifactorAuthenticationProvider provider)protected org.apereo.cas.authentication.principal.PrincipalresolvePrincipal(org.apereo.cas.authentication.principal.Principal principal)Resolve principal.booleanshouldMultifactorAuthenticationProviderExecute(org.apereo.cas.authentication.Authentication authentication, org.apereo.cas.services.RegisteredService registeredService, org.apereo.cas.authentication.MultifactorAuthenticationProvider provider, javax.servlet.http.HttpServletRequest request)protected abstract booleanshouldMultifactorAuthenticationProviderExecuteInternal(org.apereo.cas.authentication.Authentication authentication, org.apereo.cas.services.RegisteredService registeredService, org.apereo.cas.authentication.MultifactorAuthenticationProvider provider, javax.servlet.http.HttpServletRequest request)Should multifactor authentication provider execute internal.
-
-
-
Method Detail
-
forgetBypass
public void forgetBypass(org.apereo.cas.authentication.Authentication authentication)
- Specified by:
forgetBypassin interfaceorg.apereo.cas.authentication.bypass.MultifactorAuthenticationProviderBypassEvaluator
-
isMultifactorAuthenticationBypassed
public boolean isMultifactorAuthenticationBypassed(org.apereo.cas.authentication.Authentication authentication, java.lang.String requestedContext)- Specified by:
isMultifactorAuthenticationBypassedin interfaceorg.apereo.cas.authentication.bypass.MultifactorAuthenticationProviderBypassEvaluator
-
rememberBypass
public void rememberBypass(org.apereo.cas.authentication.Authentication authentication, org.apereo.cas.authentication.MultifactorAuthenticationProvider provider)- Specified by:
rememberBypassin interfaceorg.apereo.cas.authentication.bypass.MultifactorAuthenticationProviderBypassEvaluator
-
belongsToMultifactorAuthenticationProvider
public java.util.Optional<org.apereo.cas.authentication.bypass.MultifactorAuthenticationProviderBypassEvaluator> belongsToMultifactorAuthenticationProvider(java.lang.String providerId)
- Specified by:
belongsToMultifactorAuthenticationProviderin interfaceorg.apereo.cas.authentication.bypass.MultifactorAuthenticationProviderBypassEvaluator
-
shouldMultifactorAuthenticationProviderExecute
public boolean shouldMultifactorAuthenticationProviderExecute(org.apereo.cas.authentication.Authentication authentication, org.apereo.cas.services.RegisteredService registeredService, org.apereo.cas.authentication.MultifactorAuthenticationProvider provider, javax.servlet.http.HttpServletRequest request)- Specified by:
shouldMultifactorAuthenticationProviderExecutein interfaceorg.apereo.cas.authentication.bypass.MultifactorAuthenticationProviderBypassEvaluator
-
shouldMultifactorAuthenticationProviderExecuteInternal
protected abstract boolean shouldMultifactorAuthenticationProviderExecuteInternal(org.apereo.cas.authentication.Authentication authentication, org.apereo.cas.services.RegisteredService registeredService, org.apereo.cas.authentication.MultifactorAuthenticationProvider provider, javax.servlet.http.HttpServletRequest request)Should multifactor authentication provider execute internal.- Parameters:
authentication- the authenticationregisteredService- the registered serviceprovider- the providerrequest- the request- Returns:
- true/false
-
locateMatchingAttributeValue
protected static boolean locateMatchingAttributeValue(java.lang.String attrName, java.lang.String attrValue, java.util.Map<java.lang.String,java.util.List<java.lang.Object>> attributes)Locate matching attribute value boolean.- Parameters:
attrName- the attr nameattrValue- the attr valueattributes- the attributes- Returns:
- true/false
-
locateMatchingAttributeValue
protected static boolean locateMatchingAttributeValue(java.lang.String attrName, java.lang.String attrValue, java.util.Map<java.lang.String,java.util.List<java.lang.Object>> attributes, boolean matchIfNoValueProvided)Evaluate attribute rules for bypass.- Parameters:
attrName- the attr nameattrValue- the attr valueattributes- the attributesmatchIfNoValueProvided- the force match on value- Returns:
- true a matching attribute name/value is found
-
resolvePrincipal
protected org.apereo.cas.authentication.principal.Principal resolvePrincipal(org.apereo.cas.authentication.principal.Principal principal)
Resolve principal.- Parameters:
principal- the principal- Returns:
- the principal
-
-