Record Class WhoPrincipal
java.lang.Object
java.lang.Record
org.jwcarman.who.core.domain.WhoPrincipal
- Record Components:
identity- the identity signed inpermissions- every permission it holds on this request
- All Implemented Interfaces:
Serializable
-
Constructor Summary
ConstructorsConstructorDescriptionWhoPrincipal(Identity identity, Set<String> permissions) Validates that no field is null, and copies the permissions. -
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.identity()Returns the value of theidentityrecord component.Returns the value of thepermissionsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
WhoPrincipal
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
identity
-
permissions
Returns the value of thepermissionsrecord component.- Returns:
- the value of the
permissionsrecord component
-