|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object tyrex.security.ldap.LDAPCredentials
Credentials for LDAP authentication. Can be used to authenticate an LDAP connection. The LDAP URL can be used to specify the LDAP server (host and port) for which these credentials apply.
The password is stored as an array of characters to prevent string interning and allow it to be destroyed. LDAP credentials are considered private.
Constructor Summary | |
LDAPCredentials(java.lang.String host,
int port,
java.lang.String dn,
char[] password)
Constructs a new credential with the given name and password. |
Method Summary | |
void |
destroy()
Destroy the credentials. |
java.lang.String |
getDN()
Returns the account DN. |
java.lang.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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LDAPCredentials(java.lang.String host, int port, java.lang.String dn, char[] password)
host
- The LDAP hostport
- The port on the hostdn
- The account DNpassword
- The password, null if unkonwnMethod Detail |
public java.lang.String getDN()
public java.lang.String getHost()
public int getPort()
public char[] getPassword()
public void destroy()
destroy
in interface javax.security.auth.Destroyable
public boolean isDestroyed()
isDestroyed
in interface javax.security.auth.Destroyable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |