public static class EncryptionMaterialsRequest.Builder extends Object
Modifier and Type | Method and Description |
---|---|
EncryptionMaterialsRequest |
build() |
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 |
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)
Copyright © 2017. All rights reserved.