javax.wbem.client
public class PasswordCredential extends Object
PasswordCredential implements a password based credential. This
is used with UserPrincipal. PasswordCredential
includes the password and optionally the host information for which the
password is used to authenticate the UserPrincipal.
| Constructor Summary | |
|---|---|
| PasswordCredential(char[] userPassword)
Creates a PasswordCredential using the supplied password
| |
| PasswordCredential(String userPassword)
Creates a PasswordCredential using the supplied password
| |
| PasswordCredential(String userPassword, String hostname)
Creates a PasswordCredential using the supplied password and hostname
| |
| Method Summary | |
|---|---|
| String | getHostName()
Get the host name for which the password is used to authenticate
|
| char[] | getUserPassword()
Return the user login password in clear text.
|
Parameters: userPassword - The user login password in clear text.
Parameters: userPassword - The user login password in clear text.
Parameters: userPassword - The user login password in clear text. hostname - The hostname information for which the password is used to authenticate
Returns: The hostname.
Returns: The user login password.