Interface MultifactorAuthenticationProviderBypassEvaluator
-
- All Superinterfaces:
org.springframework.core.Ordered,java.io.Serializable
- All Known Subinterfaces:
ChainingMultifactorAuthenticationProviderBypassEvaluator
public interface MultifactorAuthenticationProviderBypassEvaluator extends java.io.Serializable, org.springframework.core.Ordered- Since:
- 5.0.0
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringAUTHENTICATION_ATTRIBUTE_BYPASS_MFAbypass mfa authn attribute.static java.lang.StringAUTHENTICATION_ATTRIBUTE_BYPASS_MFA_PROVIDERbypass mfa for provider id authn attribute.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.util.Optional<MultifactorAuthenticationProviderBypassEvaluator>belongsToMultifactorAuthenticationProvider(java.lang.String providerId)Indicate whether this bypass belongs to given multifactor authentication provider.default voidforgetBypass(org.apereo.cas.authentication.Authentication authentication)Method will remove any previous bypass set in the authentication.java.lang.StringgetId()Gets id.default intgetOrder()java.lang.StringgetProviderId()Gets provider id of this bypass evaluator.default booleanisEmpty()Is empty?.default booleanisMultifactorAuthenticationBypassed(org.apereo.cas.authentication.Authentication authentication, java.lang.String requestedContext)Indicates whether the authentication attempt carries information that would signal a bypassed attempt.default voidrememberBypass(org.apereo.cas.authentication.Authentication authentication, MultifactorAuthenticationProvider provider)Method will set the bypass into the authentication.booleanshouldMultifactorAuthenticationProviderExecute(org.apereo.cas.authentication.Authentication authentication, org.apereo.cas.services.RegisteredService registeredService, MultifactorAuthenticationProvider provider, javax.servlet.http.HttpServletRequest request)Eval current bypass rules for the provider.default intsize()Size.
-
-
-
Field Detail
-
AUTHENTICATION_ATTRIBUTE_BYPASS_MFA
static final java.lang.String AUTHENTICATION_ATTRIBUTE_BYPASS_MFA
bypass mfa authn attribute.- See Also:
- Constant Field Values
-
AUTHENTICATION_ATTRIBUTE_BYPASS_MFA_PROVIDER
static final java.lang.String AUTHENTICATION_ATTRIBUTE_BYPASS_MFA_PROVIDER
bypass mfa for provider id authn attribute.- See Also:
- Constant Field Values
-
-
Method Detail
-
shouldMultifactorAuthenticationProviderExecute
boolean shouldMultifactorAuthenticationProviderExecute(org.apereo.cas.authentication.Authentication authentication, org.apereo.cas.services.RegisteredService registeredService, MultifactorAuthenticationProvider provider, javax.servlet.http.HttpServletRequest request)Eval current bypass rules for the provider.- Parameters:
authentication- the authenticationregisteredService- the registered service in questionprovider- the providerrequest- the request- Returns:
- false is request isn't supported and can be bypassed. true otherwise.
-
isMultifactorAuthenticationBypassed
default boolean isMultifactorAuthenticationBypassed(org.apereo.cas.authentication.Authentication authentication, java.lang.String requestedContext)Indicates whether the authentication attempt carries information that would signal a bypassed attempt.- Parameters:
authentication- the authenticationrequestedContext- the requested context- Returns:
- true/false
-
forgetBypass
default void forgetBypass(org.apereo.cas.authentication.Authentication authentication)
Method will remove any previous bypass set in the authentication.- Parameters:
authentication- - the authentication
-
rememberBypass
default void rememberBypass(org.apereo.cas.authentication.Authentication authentication, MultifactorAuthenticationProvider provider)Method will set the bypass into the authentication.- Parameters:
authentication- - the authenticationprovider- - the provider
-
getOrder
default int getOrder()
- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-
getProviderId
java.lang.String getProviderId()
Gets provider id of this bypass evaluator.- Returns:
- the id
-
getId
java.lang.String getId()
Gets id.- Returns:
- the id
-
size
default int size()
Size.- Returns:
- the int
-
isEmpty
default boolean isEmpty()
Is empty?.- Returns:
- true/false
-
belongsToMultifactorAuthenticationProvider
java.util.Optional<MultifactorAuthenticationProviderBypassEvaluator> belongsToMultifactorAuthenticationProvider(java.lang.String providerId)
Indicate whether this bypass belongs to given multifactor authentication provider.- Parameters:
providerId- the provider id- Returns:
- the provider if a match, otherwise, empty.
-
-