javax.wbem.client

Class PasswordCredential

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[] pUserPassword)
Creates a PasswordCredential using the supplied password.
PasswordCredential(String pUserPassword)
Creates a PasswordCredential using the supplied password.
PasswordCredential(String pUserPassword, String pHostname)
Creates a PasswordCredential using the supplied password and host name.
Method Summary
StringgetHostName()
Get the host name for which the password is used to authenticate.
char[]getUserPassword()
Return the user login password in clear text.

Constructor Detail

PasswordCredential

public PasswordCredential(char[] pUserPassword)
Creates a PasswordCredential using the supplied password.

Parameters: pUserPassword The user login password in clear text.

PasswordCredential

public PasswordCredential(String pUserPassword)
Creates a PasswordCredential using the supplied password.

Parameters: pUserPassword The user login password in clear text.

PasswordCredential

public PasswordCredential(String pUserPassword, String pHostname)
Creates a PasswordCredential using the supplied password and host name.

Parameters: pUserPassword The user login password in clear text. pHostname The host name information for which the password is used to authenticate.

Method Detail

getHostName

public String getHostName()
Get the host name for which the password is used to authenticate.

Returns: The host name.

getUserPassword

public char[] getUserPassword()
Return the user login password in clear text.

Returns: The user login password.

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