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.Claims
The field for theclaims
record component.private final UserService.VerifyTokenState
The field for thestate
record component.private final @Nullable String
The field for thesubject
record component. -
Constructor Summary
ConstructorsConstructorDescriptionVerifyTokenReply
(@Nullable io.jsonwebtoken.Claims claims, UserService.VerifyTokenState state, @Nullable String subject) Creates an instance of aVerifyTokenReply
record class. -
Method Summary
Modifier and TypeMethodDescription@Nullable io.jsonwebtoken.Claims
claims()
Returns the value of theclaims
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.state()
Returns the value of thestate
record component.@Nullable String
subject()
Returns the value of thesubject
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
claims
private final @Nullable io.jsonwebtoken.Claims claimsThe field for theclaims
record component. -
state
The field for thestate
record component. -
subject
The field for thesubject
record component.
-
-
Constructor Details
-
VerifyTokenReply
public VerifyTokenReply(@Nullable io.jsonwebtoken.Claims claims, UserService.VerifyTokenState state, @Nullable String subject) Creates an instance of aVerifyTokenReply
record class.- Parameters:
claims
- the value for theclaims
record componentstate
- the value for thestate
record componentsubject
- the value for thesubject
record 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 theclaims
record component.- Returns:
- the value of the
claims
record component
-
state
Returns the value of thestate
record component.- Returns:
- the value of the
state
record component
-
subject
Returns the value of thesubject
record component.- Returns:
- the value of the
subject
record component
-