Record Class SessionId
java.lang.Object
java.lang.Record
com.svenruppert.jsentinel.session.SessionId
- Record Components:
value- non-blank session identifier
Strongly-typed identifier of an authenticated session.
Used as the primary key of SessionStore. The
value component is intentionally a free-form
String so adapters can supply whatever shape their session
mechanism produces (Vaadin's session id, an opaque token, a JWT id);
the record only guarantees non-blank.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static SessionIdFactory mirror of the canonical constructor.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
SessionId
Validates the record component.- Parameters:
value- non-blank session identifier
-
-
Method Details
-
of
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
value
-