Class FileEncryptionInfo.Builder

    • Method Detail

      • encryptionKey

        public FileEncryptionInfo.Builder encryptionKey​(byte[] encryptionKey)
        “The key used to encrypt the file content.”
        Parameters:
        encryptionKey - value of encryptionKey property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • fileDigest

        public FileEncryptionInfo.Builder fileDigest​(byte[] fileDigest)
        “The file digest prior to encryption. ProfileVersion1 requires a non-null FileDigest.”
        Parameters:
        fileDigest - value of fileDigest property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • fileDigestAlgorithm

        public FileEncryptionInfo.Builder fileDigestAlgorithm​(String fileDigestAlgorithm)
        “The file digest algorithm. ProfileVersion1 currently only supports SHA256 for the FileDigestAlgorithm.”
        Parameters:
        fileDigestAlgorithm - value of fileDigestAlgorithm property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • initializationVector

        public FileEncryptionInfo.Builder initializationVector​(byte[] initializationVector)
        “The initialization vector (IV) used for the encryption algorithm. Must be 16 bytes.”
        Parameters:
        initializationVector - value of initializationVector property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • mac

        public FileEncryptionInfo.Builder mac​(byte[] mac)
        “The hash of the concatenation of the IV and encrypted file content. Must be 32 bytes.”
        Parameters:
        mac - value of mac property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • macKey

        public FileEncryptionInfo.Builder macKey​(byte[] macKey)
        “The key used to compute the message authentication code of the concatenation of the IV and encrypted file content. Must be 32 bytes.”
        Parameters:
        macKey - value of macKey property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • profileIdentifier

        public FileEncryptionInfo.Builder profileIdentifier​(String profileIdentifier)
        “The profile identifier. Maps to the strategy used to encrypt the file. Currently , only ProfileVersion1 is supported.”
        Parameters:
        profileIdentifier - value of profileIdentifier property (as defined in service metadata)
        Returns:
        this (for method chaining)