- java.lang.Object
-
- com.sun.security.auth.NTSid
-
- com.sun.security.auth.NTSidUserPrincipal
-
- All Implemented Interfaces:
Serializable,Principal
public class NTSidUserPrincipal extends NTSid
This class extendsNTSidand represents a Windows NT user's SID.Principals such as this
NTSidUserPrincipalmay be associated with a particularSubjectto augment thatSubjectwith an additional identity. Refer to theSubjectclass for more information on how to achieve this. Authorization decisions can then be based upon the Principals associated with aSubject.- See Also:
Principal,Subject, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NTSidUserPrincipal(String name)Create anNTSidUserPrincipalwith a Windows NT SID.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Compares the specified Object with thisNTSidUserPrincipalfor equality.StringtoString()Return a string representation of thisNTSidUserPrincipal.
-
-
-
Constructor Detail
-
NTSidUserPrincipal
public NTSidUserPrincipal(String name)
Create anNTSidUserPrincipalwith a Windows NT SID.- Parameters:
name- a string version of the Windows NT SID for this user.- Throws:
NullPointerException- if thenameisnull.
-
-
Method Detail
-
toString
public String toString()
Return a string representation of thisNTSidUserPrincipal.
-
equals
public boolean equals(Object o)
Compares the specified Object with thisNTSidUserPrincipalfor equality. Returns true if the given object is also aNTSidUserPrincipaland the two NTSidUserPrincipals have the same SID.
-
-