@Generated(value="software.amazon.awssdk:codegen") public final class DecryptResponse extends KmsResponse implements ToCopyableBuilder<DecryptResponse.Builder,DecryptResponse>
Modifier and Type | Class and Description |
---|---|
static interface |
DecryptResponse.Builder |
Modifier and Type | Method and Description |
---|---|
static DecryptResponse.Builder |
builder() |
SdkBytes |
ciphertextForRecipient()
The plaintext data encrypted with the public key in the attestation document.
|
EncryptionAlgorithmSpec |
encryptionAlgorithm()
The encryption algorithm that was used to decrypt the ciphertext.
|
String |
encryptionAlgorithmAsString()
The encryption algorithm that was used to decrypt the ciphertext.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
keyId()
The Amazon Resource Name (key ARN) of the KMS
key that was used to decrypt the ciphertext.
|
SdkBytes |
plaintext()
Decrypted plaintext data.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends DecryptResponse.Builder> |
serializableBuilderClass() |
DecryptResponse.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
responseMetadata
sdkHttpResponse
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public final String keyId()
The Amazon Resource Name (key ARN) of the KMS key that was used to decrypt the ciphertext.
public final SdkBytes plaintext()
Decrypted plaintext data. When you use the HTTP API or the Amazon Web Services CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.
If the response includes the CiphertextForRecipient
field, the Plaintext
field is null
or empty.
If the response includes the CiphertextForRecipient
field, the Plaintext
field
is null or empty.
public final EncryptionAlgorithmSpec encryptionAlgorithm()
The encryption algorithm that was used to decrypt the ciphertext.
If the service returns an enum value that is not available in the current SDK version,
encryptionAlgorithm
will return EncryptionAlgorithmSpec.UNKNOWN_TO_SDK_VERSION
. The raw value
returned by the service is available from encryptionAlgorithmAsString()
.
EncryptionAlgorithmSpec
public final String encryptionAlgorithmAsString()
The encryption algorithm that was used to decrypt the ciphertext.
If the service returns an enum value that is not available in the current SDK version,
encryptionAlgorithm
will return EncryptionAlgorithmSpec.UNKNOWN_TO_SDK_VERSION
. The raw value
returned by the service is available from encryptionAlgorithmAsString()
.
EncryptionAlgorithmSpec
public final SdkBytes ciphertextForRecipient()
The plaintext data encrypted with the public key in the attestation document.
This field is included in the response only when the Recipient
parameter in the request includes a
valid attestation document from an Amazon Web Services Nitro enclave. For information about the interaction
between KMS and Amazon Web Services Nitro Enclaves, see How Amazon Web Services
Nitro Enclaves uses KMS in the Key Management Service Developer Guide.
This field is included in the response only when the Recipient
parameter in the request
includes a valid attestation document from an Amazon Web Services Nitro enclave. For information about
the interaction between KMS and Amazon Web Services Nitro Enclaves, see How Amazon Web
Services Nitro Enclaves uses KMS in the Key Management Service Developer Guide.
public DecryptResponse.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<DecryptResponse.Builder,DecryptResponse>
toBuilder
in class AwsResponse
public static DecryptResponse.Builder builder()
public static Class<? extends DecryptResponse.Builder> serializableBuilderClass()
public final int hashCode()
hashCode
in class AwsResponse
public final boolean equals(Object obj)
equals
in class AwsResponse
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField
in class SdkResponse
Copyright © 2023. All rights reserved.