Record Class MfaChallengeService.MfaChallenge
java.lang.Object
java.lang.Record
org.chenile.security.auth.framework.contract.MfaChallengeService.MfaChallenge
- Enclosing interface:
MfaChallengeService
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for thechallengeIdrecord component.private final StringThe field for thedestinationHintrecord component.private final StringThe field for thedisplayNamerecord component.private final InstantThe field for theexpiresAtrecord component.private final StringThe field for theproviderKeyrecord component.private final AuthProviderTypeThe field for theproviderTyperecord component. -
Constructor Summary
ConstructorsConstructorDescriptionMfaChallenge(String challengeId, String providerKey, AuthProviderType providerType, String displayName, String destinationHint, Instant expiresAt) Creates an instance of aMfaChallengerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thechallengeIdrecord component.Returns the value of thedestinationHintrecord component.Returns the value of thedisplayNamerecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpiresAtrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theproviderKeyrecord component.Returns the value of theproviderTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
challengeId
The field for thechallengeIdrecord component. -
providerKey
The field for theproviderKeyrecord component. -
providerType
The field for theproviderTyperecord component. -
displayName
The field for thedisplayNamerecord component. -
destinationHint
The field for thedestinationHintrecord component. -
expiresAt
The field for theexpiresAtrecord component.
-
-
Constructor Details
-
MfaChallenge
public MfaChallenge(String challengeId, String providerKey, AuthProviderType providerType, String displayName, String destinationHint, Instant expiresAt) Creates an instance of aMfaChallengerecord class.- Parameters:
challengeId- the value for thechallengeIdrecord componentproviderKey- the value for theproviderKeyrecord componentproviderType- the value for theproviderTyperecord componentdisplayName- the value for thedisplayNamerecord componentdestinationHint- the value for thedestinationHintrecord componentexpiresAt- the value for theexpiresAtrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
challengeId
Returns the value of thechallengeIdrecord component.- Returns:
- the value of the
challengeIdrecord component
-
providerKey
Returns the value of theproviderKeyrecord component.- Returns:
- the value of the
providerKeyrecord component
-
providerType
Returns the value of theproviderTyperecord component.- Returns:
- the value of the
providerTyperecord component
-
displayName
Returns the value of thedisplayNamerecord component.- Returns:
- the value of the
displayNamerecord component
-
destinationHint
Returns the value of thedestinationHintrecord component.- Returns:
- the value of the
destinationHintrecord component
-
expiresAt
Returns the value of theexpiresAtrecord component.- Returns:
- the value of the
expiresAtrecord component
-
CHENILE