Record Class EmailVerificationLink.Result
java.lang.Object
java.lang.Record
com.iizix.server.security.EmailVerificationLink.Result
- Record Components:
status- The status.claim- The claim, null for INVALID.
- Enclosing class:
EmailVerificationLink
public static record EmailVerificationLink.Result(EmailVerificationLink.Status status, EmailVerificationLink.Claim claim) extends Record
A verification result: the status, and the claim when the token was sealed by this server for this purpose (VALID or EXPIRED), null when INVALID.
- Author:
- Christopher Mindus
Constructor Summary
ConstructorsConstructorDescriptionResult(EmailVerificationLink.Status status, EmailVerificationLink.Claim claim) Creates an instance of aResultrecord class.Method Summary
Modifier and TypeMethodDescriptionclaim()Returns the value of theclaimrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
Constructor Details
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).status
claim