Amp\Artax\TlsInfo class TlsInfo

Exposes a connection's negotiated TLS parameters.

Summary

Properties

Methods

Properties

Methods

fromMetaData — public function fromMetaData(array $cryptoInfo, array $tlsContext): Amp\Artax\TlsInfo

Constructs a new instance from PHP's internal info.

Always pass the info as obtained from PHP as this method might extract additional fields in the future.

Type Parameter Description Default Value
array $cryptoInfo Crypto info obtained via `stream_get_meta_data($socket->getResource())["crypto"]`. none
array $tlsContext Context obtained via `stream_context_get_options($socket->getResource())["ssl"])`. none
getProtocol — public function getProtocol(): string
No documentation.
getCipherName — public function getCipherName(): string
No documentation.
getCipherBits — public function getCipherBits(): int
No documentation.
getCipherVersion — public function getCipherVersion(): string
No documentation.
getPeerCertificates — public function getPeerCertificates(): Amp\Artax\Certificate[]
No documentation.