Class: Puppet::SSL::SSLContext
- Defined in:
- lib/puppet/ssl/ssl_context.rb
Constant Summary collapse
- DEFAULTS =
{ cacerts: [], crls: [], client_chain: [], revocation: true, verify_peer: true }.freeze
Instance Attribute Summary collapse
-
#cacerts ⇒ Object
Returns the value of attribute cacerts.
-
#client_cert ⇒ Object
Returns the value of attribute client_cert.
-
#client_chain ⇒ Object
Returns the value of attribute client_chain.
-
#crls ⇒ Object
Returns the value of attribute crls.
-
#private_key ⇒ Object
Returns the value of attribute private_key.
-
#revocation ⇒ Object
Returns the value of attribute revocation.
-
#store ⇒ Object
Returns the value of attribute store.
-
#verify_peer ⇒ Object
Returns the value of attribute verify_peer.
Instance Method Summary collapse
-
#initialize(**kwargs) ⇒ SSLContext
constructor
This is an idiom to initialize a Struct from keyword arguments.
Constructor Details
#initialize(**kwargs) ⇒ SSLContext
This is an idiom to initialize a Struct from keyword arguments. Ruby 2.5 introduced ‘keyword_init: true` for that purpose, but we need to support older versions.
25 26 27 28 |
# File 'lib/puppet/ssl/ssl_context.rb', line 25 def initialize(**kwargs) super({}) DEFAULTS.merge(kwargs).each { |k,v| self[k] = v } end |
Instance Attribute Details
#cacerts ⇒ Object
Returns the value of attribute cacerts
4 5 6 |
# File 'lib/puppet/ssl/ssl_context.rb', line 4 def cacerts @cacerts end |
#client_cert ⇒ Object
Returns the value of attribute client_cert
4 5 6 |
# File 'lib/puppet/ssl/ssl_context.rb', line 4 def client_cert @client_cert end |
#client_chain ⇒ Object
Returns the value of attribute client_chain
4 5 6 |
# File 'lib/puppet/ssl/ssl_context.rb', line 4 def client_chain @client_chain end |
#crls ⇒ Object
Returns the value of attribute crls
4 5 6 |
# File 'lib/puppet/ssl/ssl_context.rb', line 4 def crls @crls end |
#private_key ⇒ Object
Returns the value of attribute private_key
4 5 6 |
# File 'lib/puppet/ssl/ssl_context.rb', line 4 def private_key @private_key end |
#revocation ⇒ Object
Returns the value of attribute revocation
4 5 6 |
# File 'lib/puppet/ssl/ssl_context.rb', line 4 def revocation @revocation end |
#store ⇒ Object
Returns the value of attribute store
4 5 6 |
# File 'lib/puppet/ssl/ssl_context.rb', line 4 def store @store end |
#verify_peer ⇒ Object
Returns the value of attribute verify_peer
4 5 6 |
# File 'lib/puppet/ssl/ssl_context.rb', line 4 def verify_peer @verify_peer end |