javax.wbem.client
public class RolePrincipal extends Object implements Principal
Constructor Summary | |
---|---|
RolePrincipal(String pRole)
This constructor accepts the user name.
|
Method Summary | |
---|---|
boolean | equals(Object pObj)
The equals method checks if the specified principal is the same principal
as this object. |
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.
|
String | toString()
The toString() method returns a string representation of
the principal suitable for displaying in messages. |
Parameters: pRole - The role name.
RolePrincipal
and the user name is the same.
Parameters: pObj - The Principal to compare for equality.
Returns: true
if they are equal, otherwise
false
.
See Also: java.lang.Object#equals(java.lang.Object)
Returns: The name of this principal identity.
See Also: java.security.Principal#getName()
hashCode()
method returns an integer hash code to
represent this principal.
Returns: An integer hash code representing the principal.
See Also: java.lang.Object#hashCode()
toString()
method returns a string representation of
the principal suitable for displaying in messages. It should not be used
for making authorization checks.
Returns: A printable string form of the role principal.
See Also: java.lang.Object#toString()