Interface KeyStoreFacade

  • All Known Implementing Classes:
    KeyStoreFacadeImpl

    public interface KeyStoreFacade
    Wrapper for a KeyStore with ability to save.
    Since:
    1.0.0
    Author:
    Joerg Hohwiller (hohwille at users.sourceforge.net)
    • Method Detail

      • getKey

        KeySet getKey​(String alias,
                      String password)
        Parameters:
        alias - the alias under which the key pair shall be stored.
        password - the passphrase used to secure the KeySet.
        Returns:
        the KeySet loaded from the key store.
      • setKey

        void setKey​(String alias,
                    SecretKey key,
                    String password)
        Parameters:
        alias - the alias under which the key pair shall be stored.
        key - the SecretKey to store.
        password - the passphrase used to secure the KeySet.
      • setKey

        default void setKey​(String alias,
                            SymmetricKey<?> key,
                            String password)
        Parameters:
        alias - the alias under which the key pair shall be stored.
        key - the SymmetricKey to store.
        password - the passphrase used to secure the KeySet.
      • save

        void save()
        Saves this key store with all changes.