HATS 7.5.1 Web API Reference

Publicly accessible methods not documented here are for IBM internal use only and may change in a future release of the product.

com.ibm.hats.portlet.cv
Class UserPasswordCredential

java.lang.Object
  extended by com.ibm.hats.portlet.cv.UserPasswordCredential

public class UserPasswordCredential
extends Object

This class is used to store the user name and password for credentials.


Field Summary
static String CLASSNAME
          The CLASSNAME string contains the package and class of the instance of the class being used.
static String Copyright
          The HATSCopyright.COPYRIGHT field will be updated each release, thereby updating this class file.
 
Constructor Summary
UserPasswordCredential()
          Constructor for creating a UserPasswordCredential object.
UserPasswordCredential(String user, char[] password)
          Constructor for creating a UserPasswordCredential object.
UserPasswordCredential(String user, String password)
          Constructor for creating a UserPasswordCredential object.
 
Method Summary
 String getPassword()
          Returns the password string for the credential.
 String getUser()
          Returns the user name string for the credential.
 void setPassword(char[] password)
          Sets the password for the credential.
 void setPassword(String password)
          Sets the password for the credential.
 void setUser(String user)
          Sets the user name for the credential.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Copyright

public static final String Copyright
The HATSCopyright.COPYRIGHT field will be updated each release, thereby updating this class file.

See Also:
Constant Field Values

CLASSNAME

public static final String CLASSNAME
The CLASSNAME string contains the package and class of the instance of the class being used.

See Also:
Constant Field Values
Constructor Detail

UserPasswordCredential

public UserPasswordCredential()
Constructor for creating a UserPasswordCredential object. Both the user and password will be initially set to a 0 length string.


UserPasswordCredential

public UserPasswordCredential(String user,
                              String password)
Constructor for creating a UserPasswordCredential object.

Parameters:
user - the identification string for the user
password - the password or key associated with the user confirming the credential as a string

UserPasswordCredential

public UserPasswordCredential(String user,
                              char[] password)
Constructor for creating a UserPasswordCredential object.

Parameters:
user - the identification string for the user
password - the password or key associated with the user confirming the credential as a character array
Method Detail

setUser

public void setUser(String user)
Sets the user name for the credential.

Parameters:
user - the identification string for the user

setPassword

public void setPassword(char[] password)
Sets the password for the credential.

Parameters:
password - the password or key associated with the user confirming the credential as a character array

setPassword

public void setPassword(String password)
Sets the password for the credential.

Parameters:
password - the password or key associated with the user confirming the credential as a string

getUser

public String getUser()
Returns the user name string for the credential.

Returns:
the user

getPassword

public String getPassword()
Returns the password string for the credential.

Returns:
the password

HATS 7.5.1 (201005110649)