Interface KeyFormat<T>

  • Type Parameters:
    T - the type of object returned by this formatter.
    All Known Implementing Classes:
    KeyFormatPem, KeyFormatRaw

    public interface KeyFormat<T>
    A format that can be used for exporting key material.
    • Method Detail

      • export

        T export​(CryptoKey key,
                 Key rawKey)
          throws NoSuchSecretException
        Exports the given crypto key and raw key material.
        Parameters:
        key - the crypto key.
        rawKey - the raw key material.
        Returns:
        the exported key material in the given format.
        Throws:
        NoSuchSecretException - if the secret could not be exported.