Name
PasswordCredential
Synopsis
This class represents a security credential that consists simply of a username and password.
public final class PasswordCredential implements Serializable { // Public Constructors public PasswordCredential(String userName, char[] password); // Public Instance Methods public ManagedConnectionFactory getManagedConnectionFactory( ); public char[] getPassword(); public String getUserName(); public void setManagedConnectionFactory( ManagedConnectionFactory mcf); // Public Methods Overriding Object public boolean equals( Object other); public int hashCode(); }
Get Java Enterprise in a Nutshell, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.