Package ch.rswk.meta.engine
Record Class UserService.UserServiceTokenConfig
java.lang.Object
java.lang.Record
ch.rswk.meta.engine.UserService.UserServiceTokenConfig
- Enclosing class:
UserService
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionUserServiceTokenConfig(long expiration, int iterations, String passphrase, String salt) Creates an instance of aUserServiceTokenConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.longReturns the value of theexpirationrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of theiterationsrecord component.Returns the value of thepassphraserecord component.salt()Returns the value of thesaltrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
expiration
private final long expirationThe field for theexpirationrecord component. -
iterations
private final int iterationsThe field for theiterationsrecord component. -
passphrase
The field for thepassphraserecord component. -
salt
The field for thesaltrecord component.
-
-
Constructor Details
-
UserServiceTokenConfig
Creates an instance of aUserServiceTokenConfigrecord class.- Parameters:
expiration- the value for theexpirationrecord componentiterations- the value for theiterationsrecord componentpassphrase- the value for thepassphraserecord componentsalt- the value for thesaltrecord 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 '=='. -
expiration
public long expiration()Returns the value of theexpirationrecord component.- Returns:
- the value of the
expirationrecord component
-
iterations
public int iterations()Returns the value of theiterationsrecord component.- Returns:
- the value of the
iterationsrecord component
-
passphrase
Returns the value of thepassphraserecord component.- Returns:
- the value of the
passphraserecord component
-
salt
Returns the value of thesaltrecord component.- Returns:
- the value of the
saltrecord component
-