Class: Puppet::SSL::StateMachine::KeySSLState Private

Inherits:
SSLState show all
Defined in:
lib/puppet/ssl/state_machine.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Base class for states with a private key.

Direct Known Subclasses

NeedCert, NeedRenewedCert, NeedSubmitCSR

Instance Attribute Summary collapse

Attributes inherited from SSLState

#ssl_context

Instance Method Summary collapse

Methods inherited from SSLState

#log_error, #to_error

Constructor Details

#initialize(machine, ssl_context, private_key) ⇒ KeySSLState

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of KeySSLState.



302
303
304
305
# File 'lib/puppet/ssl/state_machine.rb', line 302

def initialize(machine, ssl_context, private_key)
  super(machine, ssl_context)
  @private_key = private_key
end

Instance Attribute Details

#private_keyObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



300
301
302
# File 'lib/puppet/ssl/state_machine.rb', line 300

def private_key
  @private_key
end