Struct: kms.InvalidCiphertextException

import "../ibm-cos-sdk-go/service/kms"

Overview

From the Decrypt or ReEncrypt operation, the request was rejected because the specified ciphertext, or additional authenticated data incorporated into the ciphertext, such as the encryption context, is corrupted, missing, or otherwise invalid.

From the ImportKeyMaterial operation, the request was rejected because AWS KMS could not decrypt the encrypted (wrapped) key material.

Implemented Interfaces

s3crypto.Cipher, awserr.Error, s3manager.ReadSeekerWriteTo, awserr.RequestFailure, s3manager.WriterReadFrom

Structure Field Summary collapse

Service Operations collapse

Structure Field Details

Message_ *string `locationName:"message" type:"string"`

RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

_ struct{} `type:"structure"`

Method Details

func (s *InvalidCiphertextException) Code() string

Code returns the exception type name.



13658
13659
13660
// File 'service/kms/api.go', line 13658

func (s *InvalidCiphertextException) Error() string



13675
13676
13677
// File 'service/kms/api.go', line 13675

func (s *InvalidCiphertextException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) }

func (s InvalidCiphertextException) GoString() string

GoString returns the string representation.

API parameter values that are decorated as “sensitive” in the API will not be included in the string output. The member name will be present, but the value will be replaced with “sensitive”.



13647
13648
13649
// File 'service/kms/api.go', line 13647

func (s InvalidCiphertextException) GoString() string { return s.String() }

func (s *InvalidCiphertextException) Message() string

Message returns the exception's message.



13663
13664
13665
13666
13667
13668
// File 'service/kms/api.go', line 13663

func (s *InvalidCiphertextException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" }

func (s *InvalidCiphertextException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.



13671
13672
13673
// File 'service/kms/api.go', line 13671

func (s *InvalidCiphertextException) OrigErr() error { return nil }

func (s *InvalidCiphertextException) RequestID() string

RequestID returns the service's response RequestID for request.



13685
13686
13687
// File 'service/kms/api.go', line 13685

func (s *InvalidCiphertextException) RequestID() string { return s.RespMetadata.RequestID }

func (s *InvalidCiphertextException) StatusCode() int

Status code returns the HTTP status code for the request's response error.



13680
13681
13682
// File 'service/kms/api.go', line 13680

func (s *InvalidCiphertextException) StatusCode() int { return s.RespMetadata.StatusCode }

func (s InvalidCiphertextException) String() string

String returns the string representation.

API parameter values that are decorated as “sensitive” in the API will not be included in the string output. The member name will be present, but the value will be replaced with “sensitive”.



13638
13639
13640
// File 'service/kms/api.go', line 13638

func (s InvalidCiphertextException) String() string { return awsutil.Prettify(s) }