javax.wbem.client
Class PasswordCredential

java.lang.Object
  extended by javax.wbem.client.PasswordCredential

public class PasswordCredential
extends java.lang.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(java.lang.String userPassword)
          Creates a PasswordCredential using the supplied password
PasswordCredential(java.lang.String userPassword, java.lang.String hostname)
          Creates a PasswordCredential using the supplied password and hostname
 
Method Summary
 java.lang.String getHostName()
          Get the host name for which the password is used to authenticate
 char[] getUserPassword()
          Return the user login password in clear text.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PasswordCredential

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

Parameters:
userPassword - - The user login password in clear text.

PasswordCredential

public PasswordCredential(java.lang.String userPassword)
Creates a PasswordCredential using the supplied password

Parameters:
userPassword - - The user login password in clear text.

PasswordCredential

public PasswordCredential(java.lang.String userPassword,
                          java.lang.String hostname)
Creates a PasswordCredential using the supplied password and hostname

Parameters:
userPassword - - The user login password in clear text.
hostname - - The hostname information for which the password is used to authenticate
Method Detail

getHostName

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

Returns:
The hostname.

getUserPassword

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

Returns:
The user login password.


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