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
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAX_PASSWORD_SIZE
public static final int MAX_PASSWORD_SIZE
NULL_PASSWORD
public static final byte[] NULL_PASSWORD
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.
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.