PHP 클래스 Cassandra\SSLOptions\Builder

또한 보기: Cassandra::ssl()
또한 보기: Cassandra\Cluster\Builder::withSSL()
파일 보기 프로젝트 열기: datastax/php-driver

공개 메소드들

메소드 설명
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