public static class EncryptionMaterialsRequest.Builder extends Object
Modifier and Type | Method and Description |
---|---|
EncryptionMaterialsRequest |
build() |
CommitmentPolicy |
getCommitmentPolicy() |
Map<String,String> |
getContext() |
byte[] |
getPlaintext()
Please note that this does not make a defensive copy of the plaintext and so any
modifications made to the backing array will be reflected in this Builder.
|
long |
getPlaintextSize() |
CryptoAlgorithm |
getRequestedAlgorithm() |
EncryptionMaterialsRequest.Builder |
setCommitmentPolicy(CommitmentPolicy commitmentPolicy) |
EncryptionMaterialsRequest.Builder |
setContext(Map<String,String> context) |
EncryptionMaterialsRequest.Builder |
setPlaintext(byte[] plaintext)
Sets the plaintext field of the request.
|
EncryptionMaterialsRequest.Builder |
setPlaintextSize(long plaintextSize) |
EncryptionMaterialsRequest.Builder |
setRequestedAlgorithm(CryptoAlgorithm requestedAlgorithm) |
public EncryptionMaterialsRequest build()
public EncryptionMaterialsRequest.Builder setContext(Map<String,String> context)
public CryptoAlgorithm getRequestedAlgorithm()
public EncryptionMaterialsRequest.Builder setRequestedAlgorithm(CryptoAlgorithm requestedAlgorithm)
public long getPlaintextSize()
public EncryptionMaterialsRequest.Builder setPlaintextSize(long plaintextSize)
public byte[] getPlaintext()
public EncryptionMaterialsRequest.Builder setPlaintext(byte[] plaintext)
Please note that this does not make a defensive copy of the plaintext and so any modifications made to the backing array will be reflected in this Builder.
This method implicitly sets plaintext size as well.
public CommitmentPolicy getCommitmentPolicy()
public EncryptionMaterialsRequest.Builder setCommitmentPolicy(CommitmentPolicy commitmentPolicy)
Copyright © 2023. All rights reserved.