Package io.pravega.shared.security.auth
Class UserPrincipal
- java.lang.Object
-
- io.pravega.shared.security.auth.UserPrincipal
-
- All Implemented Interfaces:
java.io.Serializable,java.security.Principal
public class UserPrincipal extends java.lang.Object implements java.security.Principal, java.io.SerializableAPrincipalrepresents an identity (of a subject). This class implementsPrincipaland represents identity in the form of a user's name.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UserPrincipal(java.lang.String name)Constructs aPrincipalrepresenting the given user name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)java.lang.StringgetName()Returns the name of thisPrincipal.inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Returns the name of thisPrincipal.- Specified by:
getNamein interfacejava.security.Principal- Returns:
- the name of this
Principal
-
toString
public java.lang.String toString()
- Specified by:
toStringin interfacejava.security.Principal- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Specified by:
equalsin interfacejava.security.Principal- Overrides:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacejava.security.Principal- Overrides:
hashCodein classjava.lang.Object
-
-