Module: Aws::CloudFront::Signer

Included in:
CookieSigner, UrlSigner
Defined in:
lib/aws-sdk-cloudfront/signer.rb

Instance Method Summary collapse

Instance Method Details

#initialize(options = {}) ⇒ Object

Parameters:

  • options (Hash) (defaults to: {})

    a customizable set of options

Options Hash (options):

  • :key_pair_id (String)
  • :private_key (String)
  • :private_key_path (String)


16
17
18
19
20
# File 'lib/aws-sdk-cloudfront/signer.rb', line 16

def initialize(options = {})
  @key_pair_id = key_pair_id(options)
  @cipher = OpenSSL::Digest::SHA1.new
  @private_key = OpenSSL::PKey::RSA.new(private_key(options))
end