|
|||||||||
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
RolePrincipal implements a Principal identity for a role. That is, it represents the role name to be assumed on a system. RolePrincipal includes the role and optionally the host information for which the role is used to authenticate.
Constructor Summary | |
---|---|
RolePrincipal(String role)
This constructor accepts the role name. |
|
RolePrincipal(String role,
String host)
This constructor accepts the role name and host name. |
Method Summary | |
---|---|
boolean |
equals(Object p)
The equals method checks if the specified principal is the same principal as this object. |
String |
getHostName()
Get the host for which the principal uses to authenticate |
String |
getName()
Return the name of this principal identity; that is, return the 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. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RolePrincipal(String role)
role
- The role name.public RolePrincipal(String role, String host)
role
- The role namehost
- The host nameMethod Detail |
---|
public boolean equals(Object p)
equals
in interface Principal
equals
in class Object
p
- The Principal to compare for equality
public String getHostName()
public String getName()
getName
in interface Principal
public int hashCode()
hashCode
in interface Principal
hashCode
in class Object
public String toString()
toString
in interface Principal
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |