Interface NativeEncryptionKeyMetadata

All Superinterfaces:
EncryptionKeyMetadata

public interface NativeEncryptionKeyMetadata extends EncryptionKeyMetadata
EncryptionKeyMetadata for use with format-native encryption.
  • Method Details

    • encryptionKey

      ByteBuffer encryptionKey()
      Encryption key as a ByteBuffer
    • aadPrefix

      ByteBuffer aadPrefix()
      Additional authentication data as a ByteBuffer
    • fileLength

      default Long fileLength()
      Encrypted file length
    • copyWithLength

      default NativeEncryptionKeyMetadata copyWithLength(long length)
      Copy this key metadata and set the file length.
      Parameters:
      length - length of the encrypted file in bytes
      Returns:
      a copy of this key metadata (key and AAD) with the file length