Class UserPrincipal

java.lang.Object
org.dlese.dpc.schemedit.security.auth.TypedPrincipal
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:
  • Constructor Details

    • 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.