| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static class KeyStore.PasswordProtection extends Object implements KeyStore.ProtectionParameter, Destroyable
A password-based implementation of ProtectionParameter
.
Constructor Summary | |
---|---|
KeyStore.PasswordProtection(char[] password) Creates a password parameter. |
Method Summary | |
---|---|
void |
destroy() Clears the password. |
char[] |
Gets the password. |
boolean |
Determines if password has been cleared. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KeyStore.PasswordProtection(char[] password)
The specified password
is cloned before it is stored
in the new PasswordProtection
object.
password
- the password, which may be null
Method Detail |
---|
public synchronized void destroy() throws DestroyFailedException
DestroyFailedException
public synchronized char[] getPassword()
Note that this method returns a reference to the password. If a clone of the array is created it is the caller's responsibility to zero out the password information after it is no longer needed.
null
public synchronized boolean isDestroyed()
| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |