Class GrpcTlsDescriptor.Builder

    • Method Detail

      • enabled

        public GrpcTlsDescriptor.Builder enabled​(boolean enabled)
        Enable or disable TLS. If enabled is false then the rest of the TLS configuration properties are ignored.
        Parameters:
        enabled - true to enable, false otherwise
        Returns:
        this instance for fluent API
      • jdkSSL

        public GrpcTlsDescriptor.Builder jdkSSL​(boolean jdkSSL)
        Sets the type of SSL implementation to be used.
        Parameters:
        jdkSSL - true to use JDK based SSL, false otherwise
        Returns:
        this instance for fluent API
      • tlsCert

        public GrpcTlsDescriptor.Builder tlsCert​(Resource tlsCert)
        Set the client tlsCert path. Required only if mutual auth is desired.
        Parameters:
        tlsCert - the path to client's certificate
        Returns:
        this instance for fluent API
      • tlsKey

        public GrpcTlsDescriptor.Builder tlsKey​(Resource tlsKey)
        Set the client private key path. Required only if mutual auth is desired.
        Parameters:
        tlsKey - the 's TLS private key
        Returns:
        this instance for fluent API
      • tlsCaCert

        public GrpcTlsDescriptor.Builder tlsCaCert​(Resource caCert)
        Set the CA (certificate authority) certificate path.
        Parameters:
        caCert - the path to CA certificate
        Returns:
        this instance for fluent API