***  This class provides Binary Compatibility only, not Source Compatibility  ***

com.sas.services.connection
Class PasswordCredential

com.sas.services.connection.PasswordCredential
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class PasswordCredential

Login credentials for an IOM server.

See Also:
Serialized Form

Constructor Summary
PasswordCredential(java.lang.String userName, java.lang.String password)
          Construct login credentials.
PasswordCredential(java.lang.String userName, java.lang.String password, java.lang.String domain)
          Construct login credentials.
 
Method Summary
 boolean equals(java.lang.Object that)
           
 java.lang.String getPassword()
          Get the password.
 java.lang.String getUserName()
          Get the user name.
 int hashCode()
           
 void setPassword(java.lang.String password)
          Set the password.
 void setUserName(java.lang.String userName)
          Set the user name.
 java.lang.String toString()
           
 
Methods inherited from class com.sas.services.connection.Credential
clone, getDomain, getLocale, setDomain, setLocale
 

Constructor Detail

PasswordCredential

public PasswordCredential(java.lang.String userName,
                          java.lang.String password,
                          java.lang.String domain)
Construct login credentials.

Parameters:
userName - the user name
password - the password
domain - the authentication domain. The authentication domain indicates the context in which this user name and password are valid. Servers that require user name and password also have domains, and this domain must match the server's domain if this login is valid on the server. null and empty ("") domains are equivalent.

PasswordCredential

public PasswordCredential(java.lang.String userName,
                          java.lang.String password)
Construct login credentials. The authentication domain will be "" (empty string).

Parameters:
userName - the user name
password - the password
Method Detail

setUserName

public void setUserName(java.lang.String userName)
Set the user name.

Parameters:
userName - the user name

getUserName

public java.lang.String getUserName()
Get the user name.

Returns:
the user name

setPassword

public void setPassword(java.lang.String password)
Set the password.

Parameters:
password - the password

getPassword

public java.lang.String getPassword()
Get the password.

Returns:
the password

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Credential

toString

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

***  This class provides Binary Compatibility only, not Source Compatibility  ***




Copyright © 2009 SAS Institute Inc. All Rights Reserved.