DLESE Tools
v1.6.0

org.dlese.dpc.schemedit.security.auth
Class UserPrincipal

java.lang.Object
  extended by org.dlese.dpc.schemedit.security.auth.TypedPrincipal
      extended by org.dlese.dpc.schemedit.security.auth.UserPrincipal
All Implemented Interfaces:
Serializable, Principal

public class UserPrincipal
extends TypedPrincipal
implements Principal, Serializable

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:
Serialized Form

Field Summary
 
Fields inherited from class org.dlese.dpc.schemedit.security.auth.TypedPrincipal
AUTH, COLLECTION, DOMAIN, GROUP, name, type, typeMap, UNKNOWN, USER
 
Constructor Summary
UserPrincipal()
          Create 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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.security.Principal
equals, getName, hashCode, toString
 

Constructor Detail

UserPrincipal

public UserPrincipal(String name,
                     int type)

UserPrincipal

public UserPrincipal(String name)
Create a UserPrincipal with a name.

Parameters:
name - the name for this Principal.
Throws:
NullPointerException - if the name is null.

UserPrincipal

public UserPrincipal()
Create a UserPrincipal with a blank name.


DLESE Tools
v1.6.0