Constructor and Description |
---|
PrincipalImpl(String user)
Construct a principal from a string user name.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object another)
Returns true if the object passed matches the principal represented in
this implementation.
|
String |
getName()
return the name of the principal.
|
int |
hashCode()
return a hashcode for the principal.
|
String |
toString()
Prints a stringified version of the principal.
|
public PrincipalImpl(String user)
user
- The string form of the principal name.Copyright © 2011 Nuxeo SA. All Rights Reserved.