Home » openjdk-7 » java » security » [javadoc | source]
java.security
public static class: KeyStore.PasswordProtection [javadoc | source]
java.lang.Object
   java.security.KeyStore$PasswordProtection

All Implemented Interfaces:
    Destroyable, ProtectionParameter

A password-based implementation of ProtectionParameter.
Constructor:
 public PasswordProtection(char[] password) 
Method from java.security.KeyStore$PasswordProtection Summary:
destroy,   getPassword,   isDestroyed
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from java.security.KeyStore$PasswordProtection Detail:
 public synchronized  void destroy() throws DestroyFailedException 
    Clears the password.
 public synchronized char[] getPassword() 
    Gets the password.

    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.

 public synchronized boolean isDestroyed() 
    Determines if password has been cleared.