Interface SecretKeyProvider

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      javax.crypto.SecretKey generateSecretKey()
      Generates a new secret key.
      java.lang.String serialize​(java.security.Key key)
      Returns a serialized representation of the specified key.
      javax.crypto.SecretKey toSecretKey​(java.lang.String serialized)
      Converts the provided serialized key into a secret key.
    • Method Detail

      • generateSecretKey

        javax.crypto.SecretKey generateSecretKey()
        Generates a new secret key.
        Returns:
        a secret key
      • toSecretKey

        javax.crypto.SecretKey toSecretKey​(java.lang.String serialized)
        Converts the provided serialized key into a secret key.
        Parameters:
        serialized - the serialized key
        Returns:
        a secret key
      • serialize

        java.lang.String serialize​(java.security.Key key)
        Returns a serialized representation of the specified key.
        Parameters:
        key - the key to serialize
        Returns:
        the serialized key