public class PrincipalImpl extends Object implements Principal, Serializable
| Constructor and Description |
|---|
PrincipalImpl(String user)
Construct a principal from a string user name.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object another)
This function returns true if the object passed matches
the principal represented in this implementation
|
String |
getName()
Gets the name of the Principal as a java.lang.String
|
int |
hashCode()
Returns the hashcode for this Principal object
|
String |
toString()
Prints a stringified version of the principal.
|
public PrincipalImpl(String user)
user - The string form of the principal name.public boolean equals(Object another)
public String toString()
public int hashCode()
Copyright © 2017–2020 Eclipse Foundation. All rights reserved.