|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object tyrex.security.container.ResourceCredentials
Credentials for a resource manager authentication.
The password is stored as an array of characters to prevent string interning and allow it to be destroyed. Resource credentials are considered private.
Constructor Summary | |
ResourceCredentials(java.lang.String resName,
java.lang.String name,
char[] password)
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 |
getResourceName()
Returns the resource name. |
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 ResourceCredentials(java.lang.String resName, java.lang.String name, char[] password)
resName
- The resource namepassword
- The password, null if unkonwnMethod Detail |
public java.lang.String getName()
public java.lang.String getResourceName()
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 |