Class: Puppet::Rest::SSLContext
- Defined in:
- lib/puppet/rest/ssl_context.rb
Instance Attribute Summary collapse
-
#cert_store ⇒ Object
readonly
Returns the value of attribute cert_store.
-
#verify_mode ⇒ Object
readonly
Returns the value of attribute verify_mode.
Instance Method Summary collapse
-
#initialize(verify_mode, cert_store = OpenSSL::X509::Store.new) ⇒ SSLContext
constructor
A new instance of SSLContext.
Constructor Details
#initialize(verify_mode, cert_store = OpenSSL::X509::Store.new) ⇒ SSLContext
Returns a new instance of SSLContext.
8 9 10 11 |
# File 'lib/puppet/rest/ssl_context.rb', line 8 def initialize(verify_mode, cert_store = OpenSSL::X509::Store.new) @verify_mode = verify_mode @cert_store = cert_store end |
Instance Attribute Details
#cert_store ⇒ Object (readonly)
Returns the value of attribute cert_store.
4 5 6 |
# File 'lib/puppet/rest/ssl_context.rb', line 4 def cert_store @cert_store end |
#verify_mode ⇒ Object (readonly)
Returns the value of attribute verify_mode.
4 5 6 |
# File 'lib/puppet/rest/ssl_context.rb', line 4 def verify_mode @verify_mode end |