Record Class SimpleUserPrincipal
java.lang.Object
java.lang.Record
org.infinispan.server.core.security.simple.SimpleUserPrincipal
- All Implemented Interfaces:
Principal,UserPrincipal
SimpleUserPrincipal.
- Since:
- 7.0
- Author:
- Tristan Tarrant
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleUserPrincipal(String name) Creates an instance of aSimpleUserPrincipalrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.booleanequals(SimpleUserPrincipal other) getName()inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
SimpleUserPrincipal
Creates an instance of aSimpleUserPrincipalrecord class.- Parameters:
name- the value for thenamerecord component
-
-
Method Details
-
getName
-
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). -
equals
-
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. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-