Save This Page
Home » openjdk-7 » java » security » [javadoc | source]
public static class: KeyStore.PasswordProtection [javadoc | source]

All Implemented Interfaces:
    Destroyable, ProtectionParameter

A password-based implementation of ProtectionParameter.
 public PasswordProtection(char[] password) 
Method from$PasswordProtection Summary:
destroy,   getPassword,   isDestroyed
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from$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.