Class: AlexaRuby::Certificates
- Inherits:
-
Object
- Object
- AlexaRuby::Certificates
- Defined in:
- lib/alexa_ruby/request/base_request/validator/certificates.rb
Overview
SSL certificates validator
Instance Method Summary collapse
-
#initialize(certificates_chain_url, signature, request) ⇒ Certificates
constructor
Setup new certificates chain.
-
#valid? ⇒ Boolean
Check if it is a valid certificates chain and request signature.
Constructor Details
#initialize(certificates_chain_url, signature, request) ⇒ Certificates
Setup new certificates chain
13 14 15 16 17 |
# File 'lib/alexa_ruby/request/base_request/validator/certificates.rb', line 13 def initialize(certificates_chain_url, signature, request) download_certificates(certificates_chain_url) @signature = signature @request = request end |
Instance Method Details
#valid? ⇒ Boolean
Check if it is a valid certificates chain and request signature
22 23 24 |
# File 'lib/alexa_ruby/request/base_request/validator/certificates.rb', line 22 def valid? active? && amazon? && verified? end |