Class: Puppet::SSL::SSLContext

Inherits:
Struct
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initializeSSLContext

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

#cacertsObject

Returns the value of attribute cacerts

Returns:

  • (Object)

    the current value of cacerts



7
8
9
# File 'lib/puppet/ssl/ssl_context.rb', line 7

def cacerts
  @cacerts
end

#client_certObject

Returns the value of attribute client_cert

Returns:

  • (Object)

    the current value of client_cert



7
8
9
# File 'lib/puppet/ssl/ssl_context.rb', line 7

def client_cert
  @client_cert
end

#client_chainObject

Returns the value of attribute client_chain

Returns:

  • (Object)

    the current value of client_chain



7
8
9
# File 'lib/puppet/ssl/ssl_context.rb', line 7

def client_chain
  @client_chain
end

#crlsObject

Returns the value of attribute crls

Returns:

  • (Object)

    the current value of crls



7
8
9
# File 'lib/puppet/ssl/ssl_context.rb', line 7

def crls
  @crls
end

#private_keyObject

Returns the value of attribute private_key

Returns:

  • (Object)

    the current value of private_key



7
8
9
# File 'lib/puppet/ssl/ssl_context.rb', line 7

def private_key
  @private_key
end

#revocationObject

Returns the value of attribute revocation

Returns:

  • (Object)

    the current value of revocation



7
8
9
# File 'lib/puppet/ssl/ssl_context.rb', line 7

def revocation
  @revocation
end

#storeObject

Returns the value of attribute store

Returns:

  • (Object)

    the current value of store



7
8
9
# File 'lib/puppet/ssl/ssl_context.rb', line 7

def store
  @store
end

#verify_peerObject

Returns the value of attribute verify_peer

Returns:

  • (Object)

    the current value of verify_peer



7
8
9
# File 'lib/puppet/ssl/ssl_context.rb', line 7

def verify_peer
  @verify_peer
end