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

    Constructors
    Constructor
    Description
    DefaultMultifactorAuthenticationTriggerSelectionStrategy(Collection<org.apereo.cas.authentication.MultifactorAuthenticationTrigger> multifactorAuthenticationTriggers)
    Creates an instance of a DefaultMultifactorAuthenticationTriggerSelectionStrategy record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    Collection<org.apereo.cas.authentication.MultifactorAuthenticationTrigger>
    Returns the value of the multifactorAuthenticationTriggers record 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 String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • DefaultMultifactorAuthenticationTriggerSelectionStrategy

      public DefaultMultifactorAuthenticationTriggerSelectionStrategy(Collection<org.apereo.cas.authentication.MultifactorAuthenticationTrigger> multifactorAuthenticationTriggers)
      Creates an instance of a DefaultMultifactorAuthenticationTriggerSelectionStrategy record class.
      Parameters:
      multifactorAuthenticationTriggers - the value for the multifactorAuthenticationTriggers record 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:
      resolve in interface org.apereo.cas.authentication.MultifactorAuthenticationTriggerSelectionStrategy
      Throws:
      Throwable
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • multifactorAuthenticationTriggers

      public Collection<org.apereo.cas.authentication.MultifactorAuthenticationTrigger> multifactorAuthenticationTriggers()
      Returns the value of the multifactorAuthenticationTriggers record component.
      Specified by:
      multifactorAuthenticationTriggers in interface org.apereo.cas.authentication.MultifactorAuthenticationTriggerSelectionStrategy
      Returns:
      the value of the multifactorAuthenticationTriggers record component