|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object tyrex.security.NamePasswordCredentials
Credentials for name/password authentication. Can be used to authenticate JDBC connections, LDAP connections, etc. The realm can be used to determine where the credentials can be used.
The password is stored as an array of characters to prevent string interning and allow it to be destroyed. Name/password credentials are considered private.
Constructor Summary | |
NamePasswordCredentials(java.lang.String name,
char[] password,
java.lang.String realm)
Constructs a new credential with the given name and password. |
Method Summary | |
void |
destroy()
Destroy the credentials. |
java.lang.String |
getName()
Returns the name. |
char[] |
getPassword()
Returns the password. |
java.lang.String |
getRealm()
Returns the realm. |
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 NamePasswordCredentials(java.lang.String name, char[] password, java.lang.String realm)
password
- The password, null if unkonwnrealm
- The realm, null if unknownMethod Detail |
public java.lang.String getName()
public java.lang.String getRealm()
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 |