Interface SymmetricKeyCreator<K extends SecretKey>

    • Method Detail

      • createKey

        K createKey​(String password)
        Parameters:
        password - the secret password.
        Returns:
        the according SecretKey.
      • asBinary

        default Binary asBinary​(K key)
        Parameters:
        key - the SecretKey to serialize.
        Returns:
        the Binary.
      • verifyKey

        default void verifyKey​(K key)
        Verify that the given key matches the criteria of this key creator such as key length.
        Parameters:
        key - the SecretKey to verify.
      • getKeyLength

        int getKeyLength​(K key)
        Parameters:
        key - the SecretKey.
        Returns:
        the key length of the given key.