Package java.security

Class KeyStore.PasswordProtection

java.lang.Object
java.security.KeyStore.PasswordProtection
All Implemented Interfaces:
KeyStore.ProtectionParameter, Destroyable
Enclosing class:
KeyStore

public static class KeyStore.PasswordProtection
extends Object
implements KeyStore.ProtectionParameter, Destroyable
PasswordProtection is a ProtectionParameter that protects a KeyStore using a password.
  • Constructor Details

    • PasswordProtection

      public PasswordProtection​(char[] password)
      Constructs a new instance of PasswordProtection with a password. A copy of the password is stored in the new PasswordProtection object.
      Parameters:
      password - the password, maybe null.
  • Method Details