- java.lang.Object
-
- com.sun.security.auth.NTSid
-
- com.sun.security.auth.NTSidGroupPrincipal
-
- All Implemented Interfaces:
Serializable
,Principal
public class NTSidGroupPrincipal extends NTSid
This class extendsNTSid
and represents one of the groups to which a Windows NT user belongs.Principals such as this
NTSidGroupPrincipal
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
,NTSid
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NTSidGroupPrincipal(String name)
Create anNTSidGroupPrincipal
with a Windows NT group name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Compares the specified Object with thisNTSidGroupPrincipal
for equality.String
toString()
Return a string representation of thisNTSidGroupPrincipal
.
-
-
-
Constructor Detail
-
NTSidGroupPrincipal
public NTSidGroupPrincipal(String name)
Create anNTSidGroupPrincipal
with a Windows NT group name.- Parameters:
name
- the Windows NT group SID for this user.- Throws:
NullPointerException
- if thename
isnull
.
-
-
Method Detail
-
toString
public String toString()
Return a string representation of thisNTSidGroupPrincipal
.
-
equals
public boolean equals(Object o)
Compares the specified Object with thisNTSidGroupPrincipal
for equality. Returns true if the given object is also aNTSidGroupPrincipal
and the two NTSidGroupPrincipals have the same SID.
-
-