Record Class SubjectId
java.lang.Object
java.lang.Record
com.svenruppert.jsentinel.logout.SubjectId
- Record Components:
value- the subject identifier as exposed by the application'sJSentinelSubject. Non-null, non-blank.
Strongly-typed wrapper around the application's stable subject
identifier.
Used at API boundaries where the alternative — a raw String —
would be ambiguous (a logout(String) call could plausibly mean
a username, a token, a session id, an opaque audit id; a
logout(SubjectId) call cannot).
-
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 SubjectIdConvenience factory.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
SubjectId
-
-
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
-