Package org.apereo.cas.authentication
Record Class DefaultMultifactorAuthenticationTriggerSelectionStrategy
java.lang.Object
java.lang.Record
org.apereo.cas.authentication.DefaultMultifactorAuthenticationTriggerSelectionStrategy
- All Implemented Interfaces:
org.apereo.cas.authentication.MultifactorAuthenticationTriggerSelectionStrategy
public record DefaultMultifactorAuthenticationTriggerSelectionStrategy(Collection<org.apereo.cas.authentication.MultifactorAuthenticationTrigger> multifactorAuthenticationTriggers)
extends Record
implements org.apereo.cas.authentication.MultifactorAuthenticationTriggerSelectionStrategy
Default MFA Trigger selection strategy.
- Since:
- 5.0.0
-
Field Summary
Fields inherited from interface org.apereo.cas.authentication.MultifactorAuthenticationTriggerSelectionStrategy
BEAN_NAME -
Constructor Summary
ConstructorsConstructorDescriptionDefaultMultifactorAuthenticationTriggerSelectionStrategy(Collection<org.apereo.cas.authentication.MultifactorAuthenticationTrigger> multifactorAuthenticationTriggers) Creates an instance of aDefaultMultifactorAuthenticationTriggerSelectionStrategyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Collection<org.apereo.cas.authentication.MultifactorAuthenticationTrigger> Returns the value of themultifactorAuthenticationTriggersrecord component.Optional<org.apereo.cas.authentication.MultifactorAuthenticationProvider> resolve(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.apereo.cas.services.RegisteredService registeredService, org.apereo.cas.authentication.Authentication authentication, org.apereo.cas.authentication.principal.Service service) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DefaultMultifactorAuthenticationTriggerSelectionStrategy
public DefaultMultifactorAuthenticationTriggerSelectionStrategy(Collection<org.apereo.cas.authentication.MultifactorAuthenticationTrigger> multifactorAuthenticationTriggers) Creates an instance of aDefaultMultifactorAuthenticationTriggerSelectionStrategyrecord class.- Parameters:
multifactorAuthenticationTriggers- the value for themultifactorAuthenticationTriggersrecord component
-
-
Method Details
-
resolve
public Optional<org.apereo.cas.authentication.MultifactorAuthenticationProvider> resolve(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.apereo.cas.services.RegisteredService registeredService, org.apereo.cas.authentication.Authentication authentication, org.apereo.cas.authentication.principal.Service service) throws Throwable - Specified by:
resolvein interfaceorg.apereo.cas.authentication.MultifactorAuthenticationTriggerSelectionStrategy- Throws:
Throwable
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
multifactorAuthenticationTriggers
public Collection<org.apereo.cas.authentication.MultifactorAuthenticationTrigger> multifactorAuthenticationTriggers()Returns the value of themultifactorAuthenticationTriggersrecord component.- Specified by:
multifactorAuthenticationTriggersin interfaceorg.apereo.cas.authentication.MultifactorAuthenticationTriggerSelectionStrategy- Returns:
- the value of the
multifactorAuthenticationTriggersrecord component
-