com.ibm.cics.core.comm
Class CredentialsConfiguration

java.lang.Object
  extended by com.ibm.cics.core.comm.CredentialsConfiguration

public class CredentialsConfiguration
extends java.lang.Object

Configuration class representing the credentials that should be used when authenticating a connection.


Constructor Summary
CredentialsConfiguration(CredentialsConfiguration other)
          Constructor for a new CredentialsConfiguration to be cloned from an existing CredentialsConfiguration
CredentialsConfiguration(java.lang.String id, java.lang.String name, java.lang.String userid, java.lang.String password, boolean savePasswd)
          Constructor for a new CredentialsConfiguration
 
Method Summary
static CredentialsConfiguration createCredentialsConfigurationWithNewId(java.lang.String name, java.lang.String userID, java.lang.String password, boolean savePwd)
          Creates new CredentialsConfiguration, automatically generating a new unique ID.
 boolean equals(java.lang.Object obj)
           
 java.lang.String getID()
          Getter for ID.
 java.lang.String getName()
          Getter for name
 java.lang.String getPassword()
          Getter for password.
 java.lang.String getUserID()
          Getter for User ID.
 int hashCode()
           
 boolean isSavePassword()
          Getter for save password
 void setID(java.lang.String anID)
          Setter for ID.
 void setName(java.lang.String credentialsName)
          Setter for name.
 void setPassword(java.lang.String newPassword)
          Setter for password.
 void setSavePassword(boolean savePassword)
          Setter for save password
 void setUserID(java.lang.String newUserID)
          Setter for User ID.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CredentialsConfiguration

public CredentialsConfiguration(java.lang.String id,
                                java.lang.String name,
                                java.lang.String userid,
                                java.lang.String password,
                                boolean savePasswd)
Constructor for a new CredentialsConfiguration

Parameters:
id - ID of the CredentialsConfiguration
name - Name of the CredentialsConfiguration
userid - User ID to authenticate
password - Password to authenticate with
savePasswd - whether or not the password should be saved.

CredentialsConfiguration

public CredentialsConfiguration(CredentialsConfiguration other)
Constructor for a new CredentialsConfiguration to be cloned from an existing CredentialsConfiguration

Parameters:
other - A CredentialsConfiguration to duplicate.
Method Detail

createCredentialsConfigurationWithNewId

public static CredentialsConfiguration createCredentialsConfigurationWithNewId(java.lang.String name,
                                                                               java.lang.String userID,
                                                                               java.lang.String password,
                                                                               boolean savePwd)
Creates new CredentialsConfiguration, automatically generating a new unique ID.

Parameters:
name - Name of the new credentials.
userID - User ID to authenticate
password - Password to authenticate with
savePwd - whether or not the password should be saved permanently
Returns:
a new CredentialsConfiguration

getName

public java.lang.String getName()
Getter for name

Returns:
Name of the CredentialsConfiguration

getUserID

public java.lang.String getUserID()
Getter for User ID.

Returns:
User ID to authenticate.

getPassword

public java.lang.String getPassword()
Getter for password.

Returns:
Password to authenticate with.

getID

public java.lang.String getID()
Getter for ID.

Returns:
Unique ID of this CredentialsConfiguration.

setPassword

public void setPassword(java.lang.String newPassword)
Setter for password.

Parameters:
newPassword - Password to authenticate with.

setUserID

public void setUserID(java.lang.String newUserID)
Setter for User ID.

Parameters:
newUserID - User ID to authenticate.

isSavePassword

public boolean isSavePassword()
Getter for save password

Returns:
whether or not the password should be permanently saved.

setSavePassword

public void setSavePassword(boolean savePassword)
Setter for save password

Parameters:
savePassword - Whether or not the password shouldbe permanently saved.

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

setID

public void setID(java.lang.String anID)
Setter for ID.

Parameters:
anID - A new Unique ID to use for the CredentialsConfiguration.

setName

public void setName(java.lang.String credentialsName)
Setter for name.

Parameters:
credentialsName - New name for the CredentialsConfiguration.


Copyright © 2013 IBM Corp. All Rights Reserved.