Top Description Fields Constructors Methods
com.sun.security.auth

public Class NTSidGroupPrincipal

extends NTSid
Class Inheritance

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.

See Also
java.security.Principal, javax.security.auth.Subject, com.sun.security.auth.NTSid

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
NTSidGroupPrincipal(String
the Windows NT group SID for this user.
name
)

Create an NTSidGroupPrincipal with a Windows NT group name.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if the specified Object is equal to this NTSidGroupPrincipal.
equals
(Object
Object to be compared for equality with this NTSidGroupPrincipal.
o
)

Overrides com.sun.security.auth.NTSid.equals.

Implements java.security.Principal.equals.

Compares the specified Object with this NTSidGroupPrincipal for equality.
public String

Returns:

a string representation of this NTSidGroupPrincipal.
toString
()

Overrides com.sun.security.auth.NTSid.toString.

Implements java.security.Principal.toString.

Return a string representation of this NTSidGroupPrincipal.
Inherited from com.sun.security.auth.NTSid:
getNamehashCode

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides com.sun.security.auth.NTSid.serialVersionUID.

Constructor Detail

NTSidGroupPrincipalback to summary
public NTSidGroupPrincipal(String name)

Create an NTSidGroupPrincipal with a Windows NT group name.

Parameters
name:String

the Windows NT group SID for this user.

Exceptions
NullPointerException:
if the name is null.

Method Detail

equalsback to summary
public boolean equals(Object o)

Overrides com.sun.security.auth.NTSid.equals.

Implements java.security.Principal.equals.

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

Object to be compared for equality with this NTSidGroupPrincipal.

Returns:boolean

true if the specified Object is equal to this NTSidGroupPrincipal.

toStringback to summary
public String toString()

Overrides com.sun.security.auth.NTSid.toString.

Implements java.security.Principal.toString.

Return a string representation of this NTSidGroupPrincipal.

Returns:String

a string representation of this NTSidGroupPrincipal.