public class

NTSidGroupPrincipal

extends NTSid
java.lang.Object
   ↳ com.sun.security.auth.NTSid
     ↳ com.sun.security.auth.NTSidGroupPrincipal

Class Overview

This class extends NTSid and represents one of the groups to which a Windows NT user belongs.

Principals such as this NTSidGroupPrincipal may be associated with a particular Subject to augment that Subject with an additional identity. Refer to the Subject class for more information on how to achieve this. Authorization decisions can then be based upon the Principals associated with a Subject.

Summary

Public Constructors
NTSidGroupPrincipal(String name)
Create an NTSidGroupPrincipal with a Windows NT group name.
Public Methods
boolean equals(Object o)
Compares the specified Object with this NTSidGroupPrincipal for equality.
String toString()
Return a string representation of this NTSidGroupPrincipal.
[Expand]
Inherited Methods
From class com.sun.security.auth.NTSid
From class java.lang.Object
From interface java.security.Principal

Public Constructors

public NTSidGroupPrincipal (String name)

Create an NTSidGroupPrincipal with a Windows NT group name.

Parameters
name the Windows NT group SID for this user.

Throws
NullPointerException if the name is null.

Public Methods

public boolean equals (Object o)

Compares the specified Object with this NTSidGroupPrincipal for equality. Returns true if the given object is also a NTSidGroupPrincipal and the two NTSidGroupPrincipals have the same SID.

Parameters
o Object to be compared for equality with this NTSidGroupPrincipal.
Returns
  • true if the specified Object is equal equal to this NTSidGroupPrincipal.

public String toString ()

Return a string representation of this NTSidGroupPrincipal.

Returns
  • a string representation of this NTSidGroupPrincipal.