com.tagish.auth.win32
Class NTPrincipal

java.lang.Object
  |
  +--com.tagish.auth.TypedPrincipal
        |
        +--com.tagish.auth.win32.NTPrincipal
All Implemented Interfaces:
Principal, Serializable
Direct Known Subclasses:
NTDomainPrincipal, NTDomainSIDPrincipal, NTGroupPrincipal, NTGroupSIDPrincipal, NTUserPrincipal, NTUserSIDPrincipal

public class NTPrincipal
extends TypedPrincipal

NTPrincipals are used to represent the Principals that are returned by the com.tagish.auth.win32.NTSystemLogin module. They 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, andy@tagish.com
See Also:
Serialized Form

Fields inherited from class com.tagish.auth.TypedPrincipal
DOMAIN, GROUP, name, type, typeMap, UNKNOWN, USER
 
Constructor Summary
NTPrincipal()
           
NTPrincipal(String name)
          Create a NTPrincipal with a name.
NTPrincipal(String name, int type)
          Create a NTPrincipal with a name and type.
 
Methods inherited from class com.tagish.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
 

Constructor Detail

NTPrincipal

public NTPrincipal(String name,
                   int type)
Create a NTPrincipal with a name and type.

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

NTPrincipal

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

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

NTPrincipal

public NTPrincipal()