Exception: AWS::S3::Errors::DecryptionError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/aws/s3/encryption_errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(public_key, env_key, original) ⇒ DecryptionError

Returns a new instance of DecryptionError.



20
21
22
23
24
25
# File 'lib/aws/s3/encryption_errors.rb', line 20

def initialize(public_key, env_key, original)
  @public_key = public_key
  @env_key    = env_key
  @original   = original
  super("Could not decrypt envelope key using the given public key")
end

Instance Attribute Details

#env_keyObject (readonly)

Returns the value of attribute env_key.



17
18
19
# File 'lib/aws/s3/encryption_errors.rb', line 17

def env_key
  @env_key
end

#originalObject (readonly)

Returns the value of attribute original.



18
19
20
# File 'lib/aws/s3/encryption_errors.rb', line 18

def original
  @original
end

#public_keyObject (readonly)

Returns the value of attribute public_key.



16
17
18
# File 'lib/aws/s3/encryption_errors.rb', line 16

def public_key
  @public_key
end