Class: Puppet::SSL::SSLContext
- Defined in:
- lib/puppet/ssl/ssl_context.rb
Overview
The ‘keyword_init: true` option is no longer needed in Ruby >= 3.2
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 ⇒ SSLContext
constructor
A new instance of SSLContext.
Constructor Details
#initialize ⇒ SSLContext
Returns a new instance of SSLContext.
18 19 20 21 22 23 24 25 |
# File 'lib/puppet/ssl/ssl_context.rb', line 18 def initialize(*) super self[:cacerts] ||= [] self[:crls] ||= [] self[:client_chain] ||= [] self[:revocation] = true if self[:revocation].nil? self[:verify_peer] = true if self[:verify_peer].nil? end |
Instance Attribute Details
#cacerts ⇒ Object
Returns the value of attribute cacerts
7 8 9 |
# File 'lib/puppet/ssl/ssl_context.rb', line 7 def cacerts @cacerts end |
#client_cert ⇒ Object
Returns the value of attribute client_cert
7 8 9 |
# File 'lib/puppet/ssl/ssl_context.rb', line 7 def client_cert @client_cert end |
#client_chain ⇒ Object
Returns the value of attribute client_chain
7 8 9 |
# File 'lib/puppet/ssl/ssl_context.rb', line 7 def client_chain @client_chain end |
#crls ⇒ Object
Returns the value of attribute crls
7 8 9 |
# File 'lib/puppet/ssl/ssl_context.rb', line 7 def crls @crls end |
#private_key ⇒ Object
Returns the value of attribute private_key
7 8 9 |
# File 'lib/puppet/ssl/ssl_context.rb', line 7 def private_key @private_key end |
#revocation ⇒ Object
Returns the value of attribute revocation
7 8 9 |
# File 'lib/puppet/ssl/ssl_context.rb', line 7 def revocation @revocation end |
#store ⇒ Object
Returns the value of attribute store
7 8 9 |
# File 'lib/puppet/ssl/ssl_context.rb', line 7 def store @store end |
#verify_peer ⇒ Object
Returns the value of attribute verify_peer
7 8 9 |
# File 'lib/puppet/ssl/ssl_context.rb', line 7 def verify_peer @verify_peer end |