public class UserPrincipal extends TypedPrincipal implements java.security.Principal, java.io.Serializable
AUTH, COLLECTION, DOMAIN, GROUP, name, type, typeMap, UNKNOWN, USER
Constructor and Description |
---|
UserPrincipal()
Create a UserPrincipal with a blank name.
|
UserPrincipal(java.lang.String name)
Create a UserPrincipal with a name.
|
UserPrincipal(java.lang.String name,
int type) |
equals, getName, getType, getTypeName, hashCode, setName, setType, toString
public UserPrincipal(java.lang.String name, int type)
public UserPrincipal(java.lang.String name)
name
- the name for this Principal.java.lang.NullPointerException
- if the name
is null
.public UserPrincipal()