SslClientCredentialsOptions (API Reference)
Class SslClientCredentialsOptions
The structure below exactly match the corresponding gRPC SslCredentialsOptions structure. Options used to build SslCredentials.
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe client's certificate chain in PEM format.The client's private key in PEM format.The PEM-encoded root certificates used to verify the server. -
Constructor Summary
ConstructorsConstructorDescriptionSslClientCredentialsOptions(String pemRootCerts) The constructor which creates a new instance and sets bothpem_private_keyandpem_cert_chainto empty strings.SslClientCredentialsOptions(String pemRootCerts, String pemPrivateKey, String pemCertChain) Creates a new instance. -
Method Summary
-
Field Details
-
pemRootCerts
The PEM-encoded root certificates used to verify the server.
-
pemPrivateKey
The client's private key in PEM format. It must be non-empty for mutual TLS. Else must be set to empty string.
-
pemCertChain
The client's certificate chain in PEM format. It must be non-empty for mutual TLS. Else must be set to empty string.
-
-
Constructor Details
-
SslClientCredentialsOptions
public SslClientCredentialsOptions(@NonNull String pemRootCerts, @NonNull String pemPrivateKey, @NonNull String pemCertChain) Creates a new instance.
- Parameters:
pemRootCerts-The PEM-encoded root certificates used to verify the server.
pemPrivateKey-The client's private key in PEM format. It must be non-empty for mutual TLS. Else must be set to empty string.
pemCertChain-The client's certificate chain in PEM format. It must be non-empty for mutual TLS. Else must be set to empty string.
-
SslClientCredentialsOptions
The constructor which creates a new instance and sets both
pem_private_keyandpem_cert_chainto empty strings.- Parameters:
pemRootCerts-The PEM-encoded root certificates used to verify the server.
-