Class KeyStoreDescriptor

java.lang.Object
org.refcodes.security.TrustStoreDescriptor
org.refcodes.security.KeyStoreDescriptor
All Implemented Interfaces:
org.refcodes.mixin.Disposable

public class KeyStoreDescriptor extends TrustStoreDescriptor
The immutable KeyStoreDescriptor implements the TrustStoreDescriptor interface.
  • Constructor Details

  • Method Details

    • getKeyPassword

      public char[] getKeyPassword()
      Retrieves the key's password.
      Returns:
      The key password.
    • dispose

      public void dispose()

      Note: The passwords are overwritten with zeros and all fields are set to null: The instance will not be usable afterwards.

      Specified by:
      dispose in interface org.refcodes.mixin.Disposable
      Overrides:
      dispose in class TrustStoreDescriptor