Cloneable, ReadLimitInfo, ToCopyableBuilder<EncryptRequest.Builder,EncryptRequest>@Generated("software.amazon.awssdk:codegen") public class EncryptRequest extends AmazonWebServiceRequest implements ToCopyableBuilder<EncryptRequest.Builder,EncryptRequest>
| Modifier and Type | Class | Description |
|---|---|---|
static interface |
EncryptRequest.Builder |
NOOP| Modifier and Type | Method | Description |
|---|---|---|
static EncryptRequest.Builder |
builder() |
|
Map<String,String> |
encryptionContext() |
Name-value pair that specifies the encryption context to be used for authenticated encryption.
|
boolean |
equals(Object obj) |
|
List<String> |
grantTokens() |
A list of grant tokens.
|
int |
hashCode() |
|
String |
keyId() |
A unique identifier for the customer master key.
|
ByteBuffer |
plaintext() |
Data to be encrypted.
|
static Class<? extends EncryptRequest.Builder> |
serializableBuilderClass() |
|
EncryptRequest.Builder |
toBuilder() |
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
clone, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeoutpublic String keyId()
A unique identifier for the customer master key. This value can be a globally unique identifier, a fully specified ARN to either an alias or a key, or an alias name prefixed by "alias/".
Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012
Alias ARN Example - arn:aws:kms:us-east-1:123456789012:alias/MyAliasName
Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012
Alias Name Example - alias/MyAliasName
Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012
Alias ARN Example - arn:aws:kms:us-east-1:123456789012:alias/MyAliasName
Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012
Alias Name Example - alias/MyAliasName
public ByteBuffer plaintext()
Data to be encrypted.
ByteBuffers are stateful. Calling their get methods changes their position. We recommend
using ByteBuffer.asReadOnlyBuffer() to create a read-only view of the buffer with an independent
position, and calling get methods on this rather than directly on the returned ByteBuffer
. Doing so will ensure that anyone else using the ByteBuffer will not be affected by changes to the
position.
public Map<String,String> encryptionContext()
Name-value pair that specifies the encryption context to be used for authenticated encryption. If used here, the
same value must be supplied to the Decrypt API or decryption will fail. For more information, see Encryption Context.
Decrypt API or decryption will fail. For more
information, see Encryption
Context.public List<String> grantTokens()
A list of grant tokens.
For more information, see Grant Tokens in the AWS Key Management Service Developer Guide.
For more information, see Grant Tokens in the AWS Key Management Service Developer Guide.
public EncryptRequest.Builder toBuilder()
ToCopyableBuildertoBuilder in interface ToCopyableBuilder<EncryptRequest.Builder,EncryptRequest>public static EncryptRequest.Builder builder()
public static Class<? extends EncryptRequest.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.