- 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 extendsNTSidand represents one of the groups to which a Windows NT user belongs.Principals such as this NTSidGroupPrincipalmay 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,- NTSid, Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description NTSidGroupPrincipal(String name)Create anNTSidGroupPrincipalwith a Windows NT group name.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Compares the specified Object with thisNTSidGroupPrincipalfor equality.StringtoString()Return a string representation of thisNTSidGroupPrincipal.
 
- 
- 
- 
Constructor Detail- 
NTSidGroupPrincipalpublic NTSidGroupPrincipal(String name) Create anNTSidGroupPrincipalwith a Windows NT group name.- Parameters:
- name- the Windows NT group SID for this user.
- Throws:
- NullPointerException- if the- nameis- null.
 
 
- 
 - 
Method Detail- 
toStringpublic String toString() Return a string representation of thisNTSidGroupPrincipal.
 - 
equalspublic boolean equals(Object o) Compares the specified Object with thisNTSidGroupPrincipalfor equality. Returns true if the given object is also aNTSidGroupPrincipaland the two NTSidGroupPrincipals have the same SID.
 
- 
 
-