Record Class ResetTokenCreationResult.Created
java.lang.Object
java.lang.Record
com.svenruppert.jsentinel.credential.reset.ResetTokenCreationResult.Created
- All Implemented Interfaces:
ResetTokenCreationResult
- Enclosing interface:
ResetTokenCreationResult
public static record ResetTokenCreationResult.Created(SelectorVerifierToken token)
extends Record
implements ResetTokenCreationResult
Returned token. The wire form is
SelectorVerifierToken.encode().-
Nested Class Summary
Nested classes/interfaces inherited from interface ResetTokenCreationResult
ResetTokenCreationResult.Blocked, ResetTokenCreationResult.Created, ResetTokenCreationResult.UnknownUserModifier and TypeInterfaceDescriptionstatic final recordstatic final recordReturned token.static final record -
Constructor Summary
ConstructorsConstructorDescriptionCreated(SelectorVerifierToken token) Creates an instance of aCreatedrecord 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.token()Returns the value of thetokenrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Created
Creates an instance of aCreatedrecord class.- Parameters:
token- the value for thetokenrecord 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). -
token
Returns the value of thetokenrecord component.- Returns:
- the value of the
tokenrecord component
-