javax.wbem.client
Class RoleCredential

java.lang.Object
  extended byjavax.wbem.client.RoleCredential

public class RoleCredential
extends java.lang.Object

This class implements a password based credential for a role. It should be used in conjunction with the RolePrincipal instance. This should only be used when a client is assuming a role on a WBEM Server that requires a password.

Since:
JSR48 1.0.0

Constructor Summary
RoleCredential(java.lang.String credential)
          This constructor accepts the role credential
 
Method Summary
 java.lang.String getCredential()
          Return the role credential in clear text.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoleCredential

public RoleCredential(java.lang.String credential)
This constructor accepts the role credential

Parameters:
credential - The role credential in clear text.
Throws:
IllegalArguementException - If the credential is null
Method Detail

getCredential

public java.lang.String getCredential()
Return the role credential in clear text.

Returns:
The role credential.


Java™ WBEM (JSR48) 1.0.0 API