Class NettyCredentialsHelper

java.lang.Object
com.oracle.coherence.grpc.proxy.NettyCredentialsHelper

public class NettyCredentialsHelper extends Object
A helper class to resolve gRPC credentials.
  • Method Summary

    Modifier and Type
    Method
    Description
    static io.grpc.ChannelCredentials
    createChannelCredentials(com.tangosol.coherence.config.builder.SocketProviderBuilder socketBuilder)
    Create the ChannelCredentials to use for the client channel.
    static io.grpc.ServerCredentials
    createServerCredentials(com.tangosol.coherence.config.builder.SocketProviderBuilder socketBuilder)
    Create the ServerCredentials to use for the gRPC Proxy.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • createServerCredentials

      public static io.grpc.ServerCredentials createServerCredentials(com.tangosol.coherence.config.builder.SocketProviderBuilder socketBuilder)
      Create the ServerCredentials to use for the gRPC Proxy.
      Parameters:
      socketBuilder - the optional SocketProviderBuilder to use to provide the TLS configuration
      Returns:
      the ServerCredentials to use for the gRPC Proxy
    • createChannelCredentials

      public static io.grpc.ChannelCredentials createChannelCredentials(com.tangosol.coherence.config.builder.SocketProviderBuilder socketBuilder)
      Create the ChannelCredentials to use for the client channel.
      Parameters:
      socketBuilder - the channel SocketProviderBuilder
      Returns:
      the ChannelCredentials to use for the client channel.