Record Class MfaChallengeService.MfaChallenge

java.lang.Object
java.lang.Record
org.chenile.security.auth.framework.contract.MfaChallengeService.MfaChallenge
Enclosing interface:
MfaChallengeService

public static record MfaChallengeService.MfaChallenge(String challengeId, String providerKey, AuthProviderType providerType, String displayName, String destinationHint, Instant expiresAt) extends Record
  • Field Details

    • challengeId

      private final String challengeId
      The field for the challengeId record component.
    • providerKey

      private final String providerKey
      The field for the providerKey record component.
    • providerType

      private final AuthProviderType providerType
      The field for the providerType record component.
    • displayName

      private final String displayName
      The field for the displayName record component.
    • destinationHint

      private final String destinationHint
      The field for the destinationHint record component.
    • expiresAt

      private final Instant expiresAt
      The field for the expiresAt record component.
  • Constructor Details

    • MfaChallenge

      public MfaChallenge(String challengeId, String providerKey, AuthProviderType providerType, String displayName, String destinationHint, Instant expiresAt)
      Creates an instance of a MfaChallenge record class.
      Parameters:
      challengeId - the value for the challengeId record component
      providerKey - the value for the providerKey record component
      providerType - the value for the providerType record component
      displayName - the value for the displayName record component
      destinationHint - the value for the destinationHint record component
      expiresAt - the value for the expiresAt record component
  • Method Details

    • 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.
    • challengeId

      public String challengeId()
      Returns the value of the challengeId record component.
      Returns:
      the value of the challengeId record component
    • providerKey

      public String providerKey()
      Returns the value of the providerKey record component.
      Returns:
      the value of the providerKey record component
    • providerType

      public AuthProviderType providerType()
      Returns the value of the providerType record component.
      Returns:
      the value of the providerType record component
    • displayName

      public String displayName()
      Returns the value of the displayName record component.
      Returns:
      the value of the displayName record component
    • destinationHint

      public String destinationHint()
      Returns the value of the destinationHint record component.
      Returns:
      the value of the destinationHint record component
    • expiresAt

      public Instant expiresAt()
      Returns the value of the expiresAt record component.
      Returns:
      the value of the expiresAt record component