javax.wbem.client

Class RolePrincipal

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
StringgetHostName()
Get the host for which the principal uses to authenticate.
StringgetName()
Return the name of this principal identity; that is, return the login name.

Constructor Detail

RolePrincipal

public RolePrincipal(String pRole)
This constructor accepts the role name.

Parameters: pRole The role name.

RolePrincipal

public RolePrincipal(String pRole, String pHost)
This constructor accepts the role name and host name.

Parameters: pRole The role name. pHost The host name.

Method Detail

getHostName

public String getHostName()
Get the host for which the principal uses to authenticate.

Returns: The host name.

getName

public String getName()
Return the name of this principal identity; that is, return the login name.

Returns: The name of this principal identity.

See Also: java.security.Principal#getName()

Copyright © 2005, 2010 IBM Corporation. All Rights Reserved.