Class: Puppet::SSL::Validator
Overview
API for certificate verification
Direct Known Subclasses
Defined Under Namespace
Classes: DefaultValidator, NoValidator
Class Method Summary collapse
-
.default_validator ⇒ Puppet::SSL::Validator
Factory method for creating an instance of the default Puppet validator.
-
.no_validator ⇒ Puppet::SSL::Validator
Factory method for creating an instance of a null/no validator.
Instance Method Summary collapse
-
#peer_certs ⇒ Array<Puppet::SSL::Certificate>
Array of peer certificates.
-
#setup_connection(connection) ⇒ void
Registers the connection to validate.
-
#verify_errors ⇒ Array<String>?
Contains the result of validation.
Class Method Details
.default_validator ⇒ Puppet::SSL::Validator
Factory method for creating an instance of the default Puppet validator. This method does not have to be implemented by concrete implementations of this API.
26 27 28 |
# File 'lib/puppet/ssl/validator.rb', line 26 def self.default_validator() Puppet::SSL::Validator::DefaultValidator.new() end |
.no_validator ⇒ Puppet::SSL::Validator
Factory method for creating an instance of a null/no validator. This method does not have to be implemented by concrete implementations of this API.
15 16 17 |
# File 'lib/puppet/ssl/validator.rb', line 15 def self.no_validator() @@no_validator_cache ||= Puppet::SSL::Validator::NoValidator.new() end |
Instance Method Details
#peer_certs ⇒ Array<Puppet::SSL::Certificate>
Array of peer certificates
35 36 37 |
# File 'lib/puppet/ssl/validator.rb', line 35 def peer_certs raise NotImplementedError, "Concrete class should have implemented this method" end |
#setup_connection(connection) ⇒ void
This method returns an undefined value.
Registers the connection to validate.
56 57 58 |
# File 'lib/puppet/ssl/validator.rb', line 56 def setup_connection(connection) raise NotImplementedError, "Concrete class should have implemented this method" end |
#verify_errors ⇒ Array<String>?
Contains the result of validation
44 45 46 |
# File 'lib/puppet/ssl/validator.rb', line 44 def verify_errors raise NotImplementedError, "Concrete class should have implemented this method" end |