Class SslClientCredentialsOptions

java.lang.Object
com.here.sdk.maploader.remote.connection.SslClientCredentialsOptions

public final class SslClientCredentialsOptions extends Object

The structure below exactly match the corresponding gRPC SslCredentialsOptions structure. Options used to build SslCredentials.

  • Field Details

    • pemRootCerts

      @NonNull public String pemRootCerts

      The PEM-encoded root certificates used to verify the server.

    • pemPrivateKey

      @NonNull public String 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

      @NonNull public 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

      public SslClientCredentialsOptions(@NonNull String pemRootCerts)

      The constructor which creates a new instance and sets both pem_private_key and pem_cert_chain to empty strings.

      Parameters:
      pemRootCerts -

      The PEM-encoded root certificates used to verify the server.