PHP Класс Cassandra\SSLOptions\Builder

См. также: Cassandra::ssl()
См. также: Cassandra\Cluster\Builder::withSSL()
Показать файл Открыть проект

Открытые методы

Метод Описание
build ( ) : Cassandra\SSLOptions Builds SSL options.
withClientCert ( string $path ) : Builder Set client-side certificate chain.
withPrivateKey ( string $path, string | null $passphrase = null ) : Builder Set client-side private key. This is used to authenticate the client on the server-side.
withTrustedCerts ( $path ) : Builder Adds a trusted certificate. This is used to verify node's identity.
withVerifyFlags ( integer $flags ) : Builder Disable certificate verification.

Описание методов

build() публичный метод

Builds SSL options.
public build ( ) : Cassandra\SSLOptions
Результат Cassandra\SSLOptions ssl options configured accordingly.

withClientCert() публичный метод

This is used to authenticate the client on the server-side. This should contain the entire Certificate chain starting with the certificate itself.
public withClientCert ( string $path ) : Builder
$path string path to a file containing a PEM formatted certificate.
Результат Builder self

withPrivateKey() публичный метод

Set client-side private key. This is used to authenticate the client on the server-side.
public withPrivateKey ( string $path, string | null $passphrase = null ) : Builder
$path string Path to the private key file
$passphrase string | null Passphrase for the private key, if any
Результат Builder self

withTrustedCerts() публичный метод

Adds a trusted certificate. This is used to verify node's identity.
public withTrustedCerts ( $path ) : Builder
Результат Builder self

withVerifyFlags() публичный метод

Disable certificate verification.
public withVerifyFlags ( integer $flags ) : Builder
$flags integer
Результат Builder self