SslServerCredentialsOptions constructor

SslServerCredentialsOptions(
  1. String pemRootCerts,
  2. List<PemKeyCertPair> pemKeyCertPairs,
  3. ClientCertificateRequestType clientCertificateRequest
)

Creates a new instance.

  • pemRootCerts Root certificates (in PEM format) used to verify the client certificate. Required only for mutual TLS.
  • pemKeyCertPairs List of server key/certificate pairs. At least one pair must be provided.
  • clientCertificateRequest Indicates whether the server should request and verify the client's certificate.

Implementation

SslServerCredentialsOptions(this.pemRootCerts, this.pemKeyCertPairs, this.clientCertificateRequest);