Class SimpleUserPrincipal
- java.lang.Object
-
- org.infinispan.server.core.security.simple.SimpleUserPrincipal
-
- All Implemented Interfaces:
java.security.Principal
,UserPrincipal
@SerializeWith(Externalizer.class) public final class SimpleUserPrincipal extends java.lang.Object implements UserPrincipal
SimpleUserPrincipal.- Since:
- 7.0
- Author:
- Tristan Tarrant
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SimpleUserPrincipal.Externalizer
-
Constructor Summary
Constructors Constructor Description SimpleUserPrincipal(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object other)
boolean
equals(SimpleUserPrincipal other)
java.lang.String
getName()
int
hashCode()
java.lang.String
toString()
-
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfacejava.security.Principal
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacejava.security.Principal
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Specified by:
equals
in interfacejava.security.Principal
- Overrides:
equals
in classjava.lang.Object
-
equals
public boolean equals(SimpleUserPrincipal other)
-
toString
public java.lang.String toString()
- Specified by:
toString
in interfacejava.security.Principal
- Overrides:
toString
in classjava.lang.Object
-
-