Class UserPrincipal
java.lang.Object
org.dlese.dpc.schemedit.security.auth.TypedPrincipal
org.dlese.dpc.schemedit.security.auth.UserPrincipal
- All Implemented Interfaces:
Serializable,Principal
TypedPrincipals are derived from, and can be treated like Principals
but they also contain extra information about the type of the Principal
which can be USER, GROUP or DOMAIN. I'm not 100% certain that this is a
good way of doing things. Suggestions welcome.
- Version:
- 1.0.3
- Author:
- Andy Armstrong
- See Also:
-
Field Summary
Fields inherited from class org.dlese.dpc.schemedit.security.auth.TypedPrincipal
AUTH, COLLECTION, DOMAIN, GROUP, name, type, typeMap, UNKNOWN, USER -
Constructor Summary
ConstructorsConstructorDescriptionCreate a UserPrincipal with a blank name.UserPrincipal(String name) Create a UserPrincipal with a name.UserPrincipal(String name, int type) -
Method Summary
Methods inherited from class org.dlese.dpc.schemedit.security.auth.TypedPrincipal
equals, getName, getType, getTypeName, hashCode, setName, setType, toString
-
Constructor Details
-
UserPrincipal
-
UserPrincipal
Create a UserPrincipal with a name.- Parameters:
name- the name for this Principal.- Throws:
NullPointerException- if thenameisnull.
-
UserPrincipal
public UserPrincipal()Create a UserPrincipal with a blank name.
-