public class IncorrectKeyException extends AmazonServiceException
The request was rejected because the specified CMK cannot decrypt the data.
The KeyId
in a Decrypt request and the
SourceKeyId
in a ReEncrypt request must identify the same
CMK that was used to encrypt the ciphertext.
AmazonServiceException.ErrorType
Constructor and Description |
---|
IncorrectKeyException(java.lang.String message)
Constructs a new IncorrectKeyException with the specified error message.
|
getErrorCode, getErrorMessage, getErrorType, getMessage, getRequestId, getServiceName, getStatusCode, setErrorCode, setErrorMessage, setErrorType, setRequestId, setServiceName, setStatusCode
isRetryable
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.