|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.ibm.security.auth.JAASPrincipal
This class implements the Principal interface
and represents general information about a user, group or domain.
Principals such as this JAASPrincipal
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.
Principal,
Subject, Serialized Form| Constructor Summary | |
java.lang.String)">JAASPrincipal(java.lang.String name)
Create a JAASPrincipal with an identifying name. |
|
| Method Summary | |
boolean |
java.lang.Object)">equals(java.lang.Object o)
Compares the specified Object with this JAASPrincipal
for equality. |
java.lang.String |
getName()
Return a string name of this JAASPrincipal. |
int |
hashCode()
Return a hash code for this JAASPrincipal. |
java.lang.String |
toString()
Return a string representation of this JAASPrincipal. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public JAASPrincipal(java.lang.String name)
JAASPrincipal with an identifying name.
name - the identifying name. NullPointerException - if the name
is null.java.lang.RuntimeException - if the name
has zero length.| Method Detail |
public java.lang.String getName()
JAASPrincipal.
getName in interface java.security.PrincipalJAASPrincipalpublic java.lang.String toString()
JAASPrincipal.
toString in interface java.security.PrincipaltoString in class java.lang.ObjectJAASPrincipal.public boolean equals(java.lang.Object o)
JAASPrincipal
for equality. Returns true if the given object is also a
JAASPrincipal and the two JAASPrincipals have the
same String representation.
equals in interface java.security.Principalequals in class java.lang.Objecto - Object to be compared for equality with this
JAASPrincipal.JAASPrincipal.public int hashCode()
JAASPrincipal.
hashCode in interface java.security.PrincipalhashCode in class java.lang.ObjectJAASPrincipal.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||