|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.wbem.client.RolePrincipal
public class RolePrincipal
This class implements a Java security Principal identity for a role. That is, it represents the role name to be assumed on the remote WBEM Server.
| Constructor Summary | |
|---|---|
RolePrincipal(java.lang.String pRole)
This constructor accepts the user name. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object pObj)
The equals method checks if the specified principal is the same principal as this object. |
java.lang.String |
getName()
Return the name of this principal identity; that is, return the Unix user login name. |
int |
hashCode()
The hashCode() method returns an integer hash code to
represent this principal. |
java.lang.String |
toString()
The toString() method returns a string representation of
the principal suitable for displaying in messages. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RolePrincipal(java.lang.String pRole)
pRole - -
The role name.| Method Detail |
|---|
public boolean equals(java.lang.Object pObj)
RolePrincipal and the user name is the same.
equals in interface java.security.Principalequals in class java.lang.ObjectpObj - -
The Principal to compare for equality.
true if they are equal, otherwise
false.Object.equals(java.lang.Object)public java.lang.String getName()
getName in interface java.security.PrincipalPrincipal.getName()public int hashCode()
hashCode() method returns an integer hash code to
represent this principal.
hashCode in interface java.security.PrincipalhashCode in class java.lang.ObjectObject.hashCode()public java.lang.String toString()
toString() method returns a string representation of
the principal suitable for displaying in messages. It should not be used
for making authorization checks.
toString in interface java.security.PrincipaltoString in class java.lang.ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||