Class AwsCrypto.Builder

  • Enclosing class:
    AwsCrypto

    public static class AwsCrypto.Builder
    extends Object
    • Method Detail

      • withEncryptionFrameSize

        public AwsCrypto.Builder withEncryptionFrameSize​(int frameSize)
        Sets the frame size of the encrypted messages that the Aws Crypto client produces. The Aws Crypto client will use the last frame size set with either withEncryptionFrameSize(int) or AwsCrypto.setEncryptionFrameSize(int).
        Parameters:
        frameSize - The frame size to produce encrypted messages with.
        Returns:
        The Builder, for method chaining
      • withCommitmentPolicy

        public AwsCrypto.Builder withCommitmentPolicy​(CommitmentPolicy commitmentPolicy)
        Sets the CommitmentPolicy of this Aws Crypto client.
        Parameters:
        commitmentPolicy - The commitment policy to enforce during encryption and decryption
        Returns:
        The Builder, for method chaining
      • withMaxEncryptedDataKeys

        public AwsCrypto.Builder withMaxEncryptedDataKeys​(int maxEncryptedDataKeys)
        Sets the maximum number of encrypted data keys that this Aws Crypto client will wrap when encrypting, or unwrap when decrypting, a single message.
        Parameters:
        maxEncryptedDataKeys - The maximum number of encrypted data keys; must be positive
        Returns:
        The Builder, for method chaining