Package ch.rswk.meta.engine
Record Class UserService.TokenRequest
java.lang.Object
java.lang.Record
ch.rswk.meta.engine.UserService.TokenRequest
- Record Components:
expirationSeconds- If 0, falls back toUserService.UserServiceTokenConfig.expiration
- Enclosing class:
UserService
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final longThe field for theexpirationSecondsrecord component.The field for thegrantsrecord component.private final @Nullable StringThe field for theissuerrecord component.private final @Nullable SecretKeyThe field for thekeyrecord component.private final StringThe field for thesubjectrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.longReturns the value of theexpirationSecondsrecord component.grants()Returns the value of thegrantsrecord component.final inthashCode()Returns a hash code value for this object.@Nullable Stringissuer()Returns the value of theissuerrecord component.@Nullable SecretKeykey()Returns the value of thekeyrecord component.subject()Returns the value of thesubjectrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
expirationSeconds
private final long expirationSecondsThe field for theexpirationSecondsrecord component. -
grants
The field for thegrantsrecord component. -
key
The field for thekeyrecord component. -
subject
The field for thesubjectrecord component. -
issuer
The field for theissuerrecord component.
-
-
Constructor Details
-
TokenRequest
public TokenRequest(long expirationSeconds, @Nullable Map<String, ?> grants, @Nullable SecretKey key, String subject, @Nullable String issuer) Creates an instance of aTokenRequestrecord class.- Parameters:
expirationSeconds- the value for theexpirationSecondsrecord componentgrants- the value for thegrantsrecord componentkey- the value for thekeyrecord componentsubject- the value for thesubjectrecord componentissuer- the value for theissuerrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
expirationSeconds
public long expirationSeconds()Returns the value of theexpirationSecondsrecord component.- Returns:
- the value of the
expirationSecondsrecord component
-
grants
Returns the value of thegrantsrecord component.- Returns:
- the value of the
grantsrecord component
-
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
subject
Returns the value of thesubjectrecord component.- Returns:
- the value of the
subjectrecord component
-
issuer
Returns the value of theissuerrecord component.- Returns:
- the value of the
issuerrecord component
-