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 aUserServiceTokenConfig
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.long
Returns the value of theexpiration
record component.final int
hashCode()
Returns a hash code value for this object.int
Returns the value of theiterations
record component.Returns the value of thepassphrase
record component.salt()
Returns the value of thesalt
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
expiration
private final long expirationThe field for theexpiration
record component. -
iterations
private final int iterationsThe field for theiterations
record component. -
passphrase
The field for thepassphrase
record component. -
salt
The field for thesalt
record component.
-
-
Constructor Details
-
UserServiceTokenConfig
Creates an instance of aUserServiceTokenConfig
record class.- Parameters:
expiration
- the value for theexpiration
record componentiterations
- the value for theiterations
record componentpassphrase
- the value for thepassphrase
record componentsalt
- the value for thesalt
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
expiration
public long expiration()Returns the value of theexpiration
record component.- Returns:
- the value of the
expiration
record component
-
iterations
public int iterations()Returns the value of theiterations
record component.- Returns:
- the value of the
iterations
record component
-
passphrase
Returns the value of thepassphrase
record component.- Returns:
- the value of the
passphrase
record component
-
salt
Returns the value of thesalt
record component.- Returns:
- the value of the
salt
record component
-