- 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 extendsNTSid
and represents a Windows NT user's SID.Principals such as this
NTSidUserPrincipal
may be associated with a particularSubject
to augment thatSubject
with an additional identity. Refer to theSubject
class 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 anNTSidUserPrincipal
with a Windows NT SID.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Compares the specified Object with thisNTSidUserPrincipal
for equality.String
toString()
Return a string representation of thisNTSidUserPrincipal
.
-
-
-
Constructor Detail
-
NTSidUserPrincipal
public NTSidUserPrincipal(String name)
Create anNTSidUserPrincipal
with a Windows NT SID.- Parameters:
name
- a string version of the Windows NT SID for this user.- Throws:
NullPointerException
- if thename
isnull
.
-
-
Method Detail
-
toString
public String toString()
Return a string representation of thisNTSidUserPrincipal
.
-
equals
public boolean equals(Object o)
Compares the specified Object with thisNTSidUserPrincipal
for equality. Returns true if the given object is also aNTSidUserPrincipal
and the two NTSidUserPrincipals have the same SID.
-
-