com.caucho.sql
Class Credential

java.lang.Object
  extended by com.caucho.sql.Credential
All Implemented Interfaces:
ConnectionRequestInfo

public class Credential
extends java.lang.Object
implements ConnectionRequestInfo

The credentials


Method Summary
 boolean equals(java.lang.Object o)
          Returns true for equality.
 java.lang.String getPassword()
          Returns the password
 java.lang.String getUserName()
          Returns the user name.
 int hashCode()
          Returns the hash code.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getUserName

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


getPassword

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


hashCode

public int hashCode()
Returns the hash code.

Specified by:
hashCode in interface ConnectionRequestInfo
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Returns true for equality.

Specified by:
equals in interface ConnectionRequestInfo
Overrides:
equals in class java.lang.Object

toString

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