TorneLIB\Module\Config\WrapperSSL
Class SSL WrapperConfig for SSL related requests. Sets up stream contexts if necessary (for SOAP) and settings for curl, etc.
Synopsis
class WrapperSSL
{
- // members
- private string $version = '6.1.0';
- private bool $capable;
- private array $capabilities = ;
- private array $context = ;
- private array $securityLevelChanges = ;
- // methods
- public void __construct()
- public bool getSslCapabilities()
- private bool setSslCapabilities()
- private bool getSslStreamWrapper()
- private bool getCurlSsl()
- public array getCapabilities()
- public mixed setStrictVerification()
- private $this setContextUserAgent()
- public array getSslStreamContext()
- public array getContext()
- public WrapperSSL setContext()
- public array getSecurityLevelChanges()
Members
private
- $capabilities — array
- $capable — TorneLIB\Module\Config\bool
- $context — array
- $securityLevelChanges — array
- $version — string
Methods
private
public
- __construct() — SSL constructor.
- getCapabilities() — If capable throws an exception for a specific driver, but that driver should not be used anyway, get a list of working drivers here.
- getContext()
- getSecurityLevelChanges()
- getSslCapabilities() — Checks if system has SSL capabilities.
- getSslStreamContext() — Get prepared stream context array.
- setContext() — Configure your own context on fly. Great to use if you need to add your own cafile, etc.
- setStrictVerification() — Simplified SSL verification ruleset. Sets peer, peer_name and verify_host to be strictly verified. To change the values, see getContext() and setContext(). You don't need to run this yourself as it runs on the defaults when nothing else is set.