Interface AeadFactory

  • All Known Implementing Classes:
    AesGcmFactory

    @Immutable
    public interface AeadFactory
    Provides AEAD instances with a specific raw key.
    • Method Detail

      • getKeySizeInBytes

        int getKeySizeInBytes()
        Returns the size of the AEAD key in bytes.
      • createAead

        Aead createAead​(byte[] symmetricKey)
                 throws java.security.GeneralSecurityException
        Creates a new Aead-primitive that uses the key material given in symmetricKey, which must be of length getKeySizeInBytes().
        Returns:
        the newly created Aead-primitive.
        Throws:
        java.security.GeneralSecurityException