javax.wbem.client
public class RolePrincipal extends Object implements Principal
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 pRole)
This constructor accepts the role name.
| |
RolePrincipal(String pRole, String pHost)
This constructor accepts the role name and host name.
|
Method Summary | |
---|---|
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.
|
Parameters: pRole The role name.
Parameters: pRole The role name. pHost The host name.
Returns: The host name.
Returns: The name of this principal identity.
See Also: java.security.Principal#getName()