Interface GrpcServerSecurityConfigurator

    • Method Detail

      • trustManager

        GrpcServerSecurityConfigurator trustManager​(java.util.function.Supplier<java.io.InputStream> trustCertChainSupplier)
        Deprecated.
        Description copied from interface: SecurityConfigurator
        Trusted certificates for verifying the remote endpoint's certificate. The input stream should contain an X.509 certificate chain in PEM format.
        Specified by:
        trustManager in interface SecurityConfigurator
        Specified by:
        trustManager in interface ServerSecurityConfigurator
        Parameters:
        trustCertChainSupplier - a supplier for the certificate chain input stream.

        The responsibility to call InputStream.close() is transferred to callers of the returned Supplier. If this is not the desired behavior then wrap the InputStream and override InputStream.close().

        Returns:
        this.
      • commit

        GrpcServerBuilder commit​(javax.net.ssl.KeyManagerFactory keyManagerFactory)
        Deprecated.
        Commit configuring server security.
        Parameters:
        keyManagerFactory - an KeyManagerFactory.
        Returns:
        Original GrpcServerBuilder that initiated the security configuration process.
      • commit

        GrpcServerBuilder commit​(java.util.function.Supplier<java.io.InputStream> keyCertChainSupplier,
                                 java.util.function.Supplier<java.io.InputStream> keySupplier)
        Deprecated.
        Commit configuring server security.
        Parameters:
        keyCertChainSupplier - an Supplier that will provide an input stream for a X.509 certificate chain in PEM format.

        The responsibility to call InputStream.close() is transferred to callers of the Supplier. If this is not the desired behavior then wrap the InputStream and override InputStream.close().

        keySupplier - an Supplier that will provide an input stream for a KCS#8 private key in PEM format.

        The responsibility to call InputStream.close() is transferred to callers of the Supplier. If this is not the desired behavior then wrap the InputStream and override InputStream.close().

        Returns:
        Original GrpcServerBuilder that initiated the security configuration process.
      • commit

        GrpcServerBuilder commit​(java.util.function.Supplier<java.io.InputStream> keyCertChainSupplier,
                                 java.util.function.Supplier<java.io.InputStream> keySupplier,
                                 java.lang.String keyPassword)
        Deprecated.
        Commit configuring server security.
        Parameters:
        keyCertChainSupplier - an Supplier that will provide an input stream for a X.509 certificate chain in PEM format.

        The responsibility to call InputStream.close() is transferred to callers of the Supplier. If this is not the desired behavior then wrap the InputStream and override InputStream.close().

        keySupplier - an Supplier that will provide an input stream for a KCS#8 private key in PEM format.

        The responsibility to call InputStream.close() is transferred to callers of the Supplier. If this is not the desired behavior then wrap the InputStream and override InputStream.close().

        keyPassword - the password of the keyFile.
        Returns:
        Original GrpcServerBuilder that initiated the security configuration process.