The PasswordProtection class

The KeyStore.PasswordProtection class definition is as follows:

    public static class KeyStore.PasswordProtection extends Object      implements KeyStore.ProtectionParameter, Destroyable

This call provides an implementation of ProtectionParameter that is password-based. The class has the following methods:

  • public void destroy() throws DestroyFailedException:
    • This method clears the password
  • public char[] getPassword():
    • Returns a reference to the password
  • public boolean isDestroyed():
    • Returns true if the password was cleared

Get Java 9: Building Robust Modular Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.