Interface MultifactorAuthenticationProviderBypassEvaluator
- All Superinterfaces:
org.apereo.cas.util.NamedObject,org.springframework.core.Ordered,Serializable
- All Known Subinterfaces:
ChainingMultifactorAuthenticationProviderBypassEvaluator
public interface MultifactorAuthenticationProviderBypassEvaluator
extends Serializable, org.springframework.core.Ordered, org.apereo.cas.util.NamedObject
- Since:
- 5.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringbypass mfa authn attribute.static final Stringbypass mfa for provider id authn attribute.Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Method Summary
Modifier and TypeMethodDescriptionbelongsToMultifactorAuthenticationProvider(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.getId()Gets id.default intgetOrder()Gets provider id of this bypass evaluator.default booleanisEmpty()Is empty?.default booleanisMultifactorAuthenticationBypassed(org.apereo.cas.authentication.Authentication authentication, 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, jakarta.servlet.http.HttpServletRequest request, org.apereo.cas.authentication.principal.Service service) Eval current bypass rules for the provider.default intsize()Size.Methods inherited from interface org.apereo.cas.util.NamedObject
getName
-
Field Details
-
AUTHENTICATION_ATTRIBUTE_BYPASS_MFA
bypass mfa authn attribute.- See Also:
-
AUTHENTICATION_ATTRIBUTE_BYPASS_MFA_PROVIDER
bypass mfa for provider id authn attribute.- See Also:
-
-
Method Details
-
shouldMultifactorAuthenticationProviderExecute
boolean shouldMultifactorAuthenticationProviderExecute(org.apereo.cas.authentication.Authentication authentication, org.apereo.cas.services.RegisteredService registeredService, MultifactorAuthenticationProvider provider, jakarta.servlet.http.HttpServletRequest request, org.apereo.cas.authentication.principal.Service service) Eval current bypass rules for the provider.- Parameters:
authentication- the authenticationregisteredService- the registered service in questionprovider- the providerrequest- the requestservice- the service- Returns:
- false is request isn't supported and can be bypassed. true otherwise.
-
isMultifactorAuthenticationBypassed
default boolean isMultifactorAuthenticationBypassed(org.apereo.cas.authentication.Authentication authentication, 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
String getProviderId()Gets provider id of this bypass evaluator.- Returns:
- the id
-
getId
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
Optional<MultifactorAuthenticationProviderBypassEvaluator> belongsToMultifactorAuthenticationProvider(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.
-