|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.security.auth.AIXNumericGroupPrincipal
public class AIXNumericGroupPrincipal
This class represents a user's AIX group identification number (GID).
Principals such as this AIXNumericGroupPrincipal
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.
This class will be replaced by GroupIDPrincipal and
PrimaryGroupIDPrincipalin future releases of JAAS.
Principal,
Subject,
GroupIDPrincipal,
PrimaryGroupIDPrincipal,
Serialized Form| Constructor Summary | |
|---|---|
AIXNumericGroupPrincipal(long name,
boolean primaryGroup)
Create an AIXNumericGroupPrincipal using a
long representation of the user's group identification number (GID). |
|
AIXNumericGroupPrincipal(java.lang.String name,
boolean primaryGroup)
Create an AIXNumericGroupPrincipal using a
String representation of the user's
group identification number (GID). |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
Compares the specified Object with this AIXNumericGroupPrincipal
for equality. |
java.lang.String |
getName()
Return the user's group identification number (GID) for this AIXNumericGroupPrincipal. |
int |
hashCode()
Return a hash code for this AIXNumericGroupPrincipal. |
boolean |
isPrimaryGroup()
Return whether this group identification number (GID) represents the primary group to which this user belongs. |
long |
longValue()
Return the user's group identification number (GID) for this AIXNumericGroupPrincipal as a long. |
java.lang.String |
toString()
Return a string representation of this AIXNumericGroupPrincipal. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AIXNumericGroupPrincipal(java.lang.String name,
boolean primaryGroup)
AIXNumericGroupPrincipal using a
String representation of the user's
group identification number (GID).
name - the user's group identification number (GID)
for this user. primaryGroup - true if the specified GID represents the
primary group to which this user belongs.
java.lang.NullPointerException - if the name
is null.
public AIXNumericGroupPrincipal(long name,
boolean primaryGroup)
AIXNumericGroupPrincipal using a
long representation of the user's group identification number (GID).
name - the user's group identification number (GID) for this user
represented as a long. primaryGroup - true if the specified GID represents the
primary group to which this user belongs.| Method Detail |
|---|
public java.lang.String getName()
AIXNumericGroupPrincipal.
getName in interface java.security.PrincipalAIXNumericGroupPrincipalpublic long longValue()
AIXNumericGroupPrincipal as a long.
AIXNumericGroupPrincipal as a long.public boolean isPrimaryGroup()
public java.lang.String toString()
AIXNumericGroupPrincipal.
toString in interface java.security.PrincipaltoString in class java.lang.ObjectAIXNumericGroupPrincipal.public boolean equals(java.lang.Object o)
AIXNumericGroupPrincipal
for equality. Returns true if the given object is also an
AIXNumericGroupPrincipal and the two
AIXNumericGroupPrincipals
have the same group identification number (GID).
equals in interface java.security.Principalequals in class java.lang.Objecto - Object to be compared for equality with this
AIXNumericGroupPrincipal.
AIXNumericGroupPrincipal.public int hashCode()
AIXNumericGroupPrincipal.
hashCode in interface java.security.PrincipalhashCode in class java.lang.ObjectAIXNumericGroupPrincipal.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||