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 long
The field for theexpirationSeconds
record component.The field for thegrants
record component.private final @Nullable String
The field for theissuer
record component.private final @Nullable SecretKey
The field for thekey
record component.private final String
The field for thesubject
record component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.long
Returns the value of theexpirationSeconds
record component.grants()
Returns the value of thegrants
record component.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.subject()
Returns the value of thesubject
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
expirationSeconds
private final long expirationSecondsThe field for theexpirationSeconds
record component. -
grants
-
key
The field for thekey
record component. -
subject
The field for thesubject
record component. -
issuer
The field for theissuer
record component.
-
-
Constructor Details
-
TokenRequest
public TokenRequest(long expirationSeconds, @Nullable Map<String, ?> grants, @Nullable SecretKey key, String subject, @Nullable String issuer) Creates an instance of aTokenRequest
record class.- Parameters:
expirationSeconds
- the value for theexpirationSeconds
record componentgrants
- the value for thegrants
record componentkey
- the value for thekey
record componentsubject
- the value for thesubject
record componentissuer
- the value for theissuer
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
expirationSeconds
public long expirationSeconds()Returns the value of theexpirationSeconds
record component.- Returns:
- the value of the
expirationSeconds
record component
-
grants
-
key
Returns the value of thekey
record component.- Returns:
- the value of the
key
record component
-
subject
Returns the value of thesubject
record component.- Returns:
- the value of the
subject
record component
-
issuer
Returns the value of theissuer
record component.- Returns:
- the value of the
issuer
record component
-