Package ch.rswk.meta.engine
Record Class UserService.VerifyTokenRequest
java.lang.Object
java.lang.Record
ch.rswk.meta.engine.UserService.VerifyTokenRequest
- Enclosing class:
UserService
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @Nullable String
The field for theissuer
record component.private final @Nullable SecretKey
The field for thekey
record component.The field for therequiredGrants
record component.private final @Nullable String
The field for therequiredSubject
record component.private final String
The field for thetoken
record component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.@Nullable String
issuer()
Returns the value of theissuer
record component.@Nullable SecretKey
key()
Returns the value of thekey
record component.Returns the value of therequiredGrants
record component.@Nullable String
Returns the value of therequiredSubject
record component.token()
Returns the value of thetoken
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
key
The field for thekey
record component. -
issuer
The field for theissuer
record component. -
requiredGrants
The field for therequiredGrants
record component. -
requiredSubject
The field for therequiredSubject
record component. -
token
The field for thetoken
record component.
-
-
Constructor Details
-
VerifyTokenRequest
public VerifyTokenRequest(@Nullable SecretKey key, @Nullable String issuer, @Nullable Map<String, Integer> requiredGrants, @Nullable String requiredSubject, String token) Creates an instance of aVerifyTokenRequest
record class.- Parameters:
key
- the value for thekey
record componentissuer
- the value for theissuer
record componentrequiredGrants
- the value for therequiredGrants
record componentrequiredSubject
- the value for therequiredSubject
record componenttoken
- the value for thetoken
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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)
. -
key
Returns the value of thekey
record component.- Returns:
- the value of the
key
record component
-
issuer
Returns the value of theissuer
record component.- Returns:
- the value of the
issuer
record component
-
requiredGrants
Returns the value of therequiredGrants
record component.- Returns:
- the value of the
requiredGrants
record component
-
requiredSubject
Returns the value of therequiredSubject
record component.- Returns:
- the value of the
requiredSubject
record component
-
token
Returns the value of thetoken
record component.- Returns:
- the value of the
token
record component
-