Sha256: d7282a69ea922881dcddb73a7d454b497e0af33b61f01aad7b86865e13f87780

Contents?: true

Size: 858 Bytes

Versions: 33

Compression:

Stored size: 858 Bytes

Contents

module Aws
  module S3
    module Encryption

      # This module defines the interface required for a {Client#key_provider}.
      # A key provider is any object that:
      #
      # * Responds to {#encryption_materials} with an {Materials} object.
      #
      # * Responds to {#key_for}, receiving a JSON document String,
      #   returning an ecryption key. The returned encryption key
      #   must be one of:
      #
      #   * `OpenSSL::PKey::RSA` - for asymmetric encryption
      #   * `String` - 32, 24, or 16 bytes long, for symmetric encryption
      #
      module KeyProvider

        # @return [Materials]
        def encryption_materials; end

        # @param [String<JSON>] materials_description
        # @return [OpenSSL::PKey::RSA, String] encryption_key
        def key_for(materials_description); end

      end
    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
aws-sdk-resources-2.0.47 lib/aws-sdk-resources/services/s3/encryption/key_provider.rb
aws-sdk-resources-2.0.46 lib/aws-sdk-resources/services/s3/encryption/key_provider.rb
aws-sdk-resources-2.0.45 lib/aws-sdk-resources/services/s3/encryption/key_provider.rb
aws-sdk-resources-2.0.44 lib/aws-sdk-resources/services/s3/encryption/key_provider.rb
aws-sdk-resources-2.0.43 lib/aws-sdk-resources/services/s3/encryption/key_provider.rb
aws-sdk-resources-2.0.42 lib/aws-sdk-resources/services/s3/encryption/key_provider.rb
aws-sdk-resources-2.0.41 lib/aws-sdk-resources/services/s3/encryption/key_provider.rb
aws-sdk-resources-2.0.40 lib/aws-sdk-resources/services/s3/encryption/key_provider.rb
aws-sdk-resources-2.0.39 lib/aws-sdk-resources/services/s3/encryption/key_provider.rb
aws-sdk-resources-2.0.38 lib/aws-sdk-resources/services/s3/encryption/key_provider.rb
aws-sdk-resources-2.0.37 lib/aws-sdk-resources/services/s3/encryption/key_provider.rb
aws-sdk-resources-2.0.36 lib/aws-sdk-resources/services/s3/encryption/key_provider.rb
aws-sdk-resources-2.0.35 lib/aws-sdk-resources/services/s3/encryption/key_provider.rb
aws-sdk-resources-2.0.34 lib/aws-sdk-resources/services/s3/encryption/key_provider.rb
aws-sdk-resources-2.0.33 lib/aws-sdk-resources/services/s3/encryption/key_provider.rb
aws-sdk-resources-2.0.32 lib/aws-sdk-resources/services/s3/encryption/key_provider.rb
aws-sdk-resources-2.0.31 lib/aws-sdk-resources/services/s3/encryption/key_provider.rb
aws-sdk-resources-2.0.30 lib/aws-sdk-resources/services/s3/encryption/key_provider.rb
aws-sdk-resources-2.0.29 lib/aws-sdk-resources/services/s3/encryption/key_provider.rb
aws-sdk-resources-2.0.28 lib/aws-sdk-resources/services/s3/encryption/key_provider.rb