tyrex.security.ldap
public final class LDAPCredentials extends Object implements Destroyable
The password is stored as an array of characters to prevent string interning and allow it to be destroyed. LDAP credentials are considered private.
Version: $Revision: 1.4 $ $Date: 2001/03/12 19:20:19 $
Constructor Summary | |
---|---|
LDAPCredentials(String host, int port, String dn, char[] password)
Constructs a new credential with the given name and password.
|
Method Summary | |
---|---|
void | destroy()
Destroy the credentials. |
String | getDN()
Returns the account DN.
|
String | getHost()
Returns the LDAP Host.
|
char[] | getPassword()
Returns the password. |
int | getPort()
Returns the LDAP port on the host.
|
boolean | isDestroyed()
Returns true if these credentials have been destroyed. |
Parameters: host The LDAP host port The port on the host dn The account DN password The password, null if unkonwn
Returns: The account DN
Returns: The LDAP Host
Returns: The password
Parameters: the LDAP port on the host.