APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.security.auth

public Class NTSidPrimaryGroupPrincipal

extends NTSid
Class Inheritance

This class extends NTSid and represents a Windows NT user's primary group SID.

Principals such as this NTSidPrimaryGroupPrincipal 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.

Since
1.4
See Also
java.security.Principal, javax.security.auth.Subject

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

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

Create an NTSidPrimaryGroupPrincipal with a Windows NT group SID.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

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

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

Implements java.security.Principal.equals.

Compares the specified Object with this NTSidPrimaryGroupPrincipal for equality.

public String

Returns:

a string representation of this NTSidPrimaryGroupPrincipal.
toString
()

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

Implements java.security.Principal.toString.

Return a string representation of this NTSidPrimaryGroupPrincipal.

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

NTSidPrimaryGroupPrincipalback to summary
public NTSidPrimaryGroupPrincipal(String name)

Create an NTSidPrimaryGroupPrincipal with a Windows NT group SID.

Parameters
name:String

the primary 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 NTSidPrimaryGroupPrincipal for equality. Returns true if the given object is also a NTSidPrimaryGroupPrincipal and the two NTSidPrimaryGroupPrincipals have the same SID.

Parameters
o:Object

Object to be compared for equality with this NTSidPrimaryGroupPrincipal.

Returns:boolean

true if the specified Object is equal to this NTSidPrimaryGroupPrincipal.

toStringback to summary
public String toString()

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

Implements java.security.Principal.toString.

Return a string representation of this NTSidPrimaryGroupPrincipal.

Returns:String

a string representation of this NTSidPrimaryGroupPrincipal.