Package ch.rswk.meta.engine
Record Class UserService.VerifyTokenReply
java.lang.Object
java.lang.Record
ch.rswk.meta.engine.UserService.VerifyTokenReply
- Enclosing class:
UserService
public static record UserService.VerifyTokenReply(@Nullable io.jsonwebtoken.Claims claims, UserService.VerifyTokenState state, @Nullable String subject)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @Nullable io.jsonwebtoken.ClaimsThe field for theclaimsrecord component.private final UserService.VerifyTokenStateThe field for thestaterecord component.private final @Nullable StringThe field for thesubjectrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionVerifyTokenReply(@Nullable io.jsonwebtoken.Claims claims, UserService.VerifyTokenState state, @Nullable String subject) Creates an instance of aVerifyTokenReplyrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable io.jsonwebtoken.Claimsclaims()Returns the value of theclaimsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.state()Returns the value of thestaterecord component.@Nullable Stringsubject()Returns the value of thesubjectrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
claims
private final @Nullable io.jsonwebtoken.Claims claimsThe field for theclaimsrecord component. -
state
The field for thestaterecord component. -
subject
The field for thesubjectrecord component.
-
-
Constructor Details
-
VerifyTokenReply
public VerifyTokenReply(@Nullable io.jsonwebtoken.Claims claims, UserService.VerifyTokenState state, @Nullable String subject) Creates an instance of aVerifyTokenReplyrecord class.- Parameters:
claims- the value for theclaimsrecord componentstate- the value for thestaterecord componentsubject- the value for thesubjectrecord 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). -
claims
public @Nullable io.jsonwebtoken.Claims claims()Returns the value of theclaimsrecord component.- Returns:
- the value of the
claimsrecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
subject
Returns the value of thesubjectrecord component.- Returns:
- the value of the
subjectrecord component
-