javax.wbem.client
Class PasswordCredential

java.lang.Object
  |
  +--javax.wbem.client.PasswordCredential

public class PasswordCredential
extends java.lang.Object

This class implements a password based credential for a user login authentication. It should be used in conjunction with the UserPrincipal instance. It contains a user login password.

Since:
WBEM 2.0

Field Summary
static int MAX_PASSWORD_SIZE
           
static byte[] NULL_PASSWORD
           
 
Constructor Summary
PasswordCredential()
          Empty constructor.
PasswordCredential(java.lang.String userPassword)
          This constructor accepts the user login password.
 
Method Summary
 void clearUserPassword()
          Clear the user login password.
 java.lang.String getUserPassword()
          Return the user login password in clear text.
 void setUserPassword(java.lang.String userPassword)
          Set the user login password.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_PASSWORD_SIZE

public static final int MAX_PASSWORD_SIZE

NULL_PASSWORD

public static final byte[] NULL_PASSWORD
Constructor Detail

PasswordCredential

public PasswordCredential()
Empty constructor.

PasswordCredential

public PasswordCredential(java.lang.String userPassword)
This constructor accepts the user login password.
Parameters:
userPassword - The user login password in clear text.
Method Detail

getUserPassword

public java.lang.String getUserPassword()
Return the user login password in clear text.
Returns:
The user login password.

setUserPassword

public void setUserPassword(java.lang.String userPassword)
Set the user login password.
Parameters:
userPassword - The user login password in clear text.

clearUserPassword

public void clearUserPassword()
Clear the user login password.