|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object![]()
![]()
![]()
java.security.KeyStore.PasswordProtection
, Destroyable


public static class KeyStore.PasswordProtection

, Destroyable

A password-based implementation of ProtectionParameter.
| Constructor Summary | |
|---|---|
KeyStore.PasswordProtection
Creates a password parameter. |
|
| Method Summary | |
|---|---|
void |
destroy
Clears the password. |
char[] |
getPassword
Gets the password. |
boolean |
isDestroyed
Determines if password has been cleared. |
Methods inherited from class java.lang.Object ![]() |
|---|
clone |
| 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 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
IllegalStateException

- if the password has
been cleared (destroyed)destroy()


public void destroy()
throws DestroyFailedException

destroy

in interface Destroyable

DestroyFailedException - if this method was unable
to clear the password

public boolean isDestroyed()
isDestroyed

in interface Destroyable

|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||