Record Class CASessionSecretIdentifier
java.lang.Object
java.lang.Record
com.io7m.cardant.server.service.sessions.CASessionSecretIdentifier
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static CASessionSecretIdentifiergenerate()Generate a random identifier.static CASessionSecretIdentifiergenerate(SecureRandom rng) Generate a random identifier.final inthashCode()Returns a hash code value for this object.toString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
CASessionSecretIdentifier
A session identifier. This value is expected to be treated as a secret, as getting access to someone's session identifier allows access to the server authenticated as that user.- Parameters:
value- The identifier
-
-
Method Details
-
toString
-
generate
Generate a random identifier.- Returns:
- The identifier
-
generate
Generate a random identifier.- Parameters:
rng- A random number generator- Returns:
- The identifier
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
value
-