Class GRPCClientConfig

java.lang.Object
org.summerboot.jexpress.boot.config.BootConfig
org.summerboot.jexpress.nio.grpc.GRPCClientConfig
All Implemented Interfaces:
JExpressConfig

public abstract class GRPCClientConfig extends BootConfig
Author:
Changski Tie Zheng Zhang 张铁铮, 魏泽北, 杜旺财, 杜富贵
  • Field Details

    • FILENAME_TRUSTSTORE_4CLIENT

      protected static final String FILENAME_TRUSTSTORE_4CLIENT
      See Also:
    • ID

      protected static final String ID
      See Also:
    • uri

      @Config(key="gRpc.client.target.url", defaultValue="grpc:///", desc="grpc:///\ngrpc://127.0.0.1:8424\nunix:/tmp/grpcsrver.socket") protected volatile URI uri
    • sslProtocols

      @Config(key="gRpc.client.ssl.Protocols", defaultValue="TLSv1.3") protected String[] sslProtocols
    • ciphers

      @Config(key="gRpc.client.ssl.ciphers") protected List ciphers
    • kmf

      @ConfigHeader(title="2. gRpc.client keystore") @Config(key="gRpc.client.ssl.KeyStore", StorePwdKey="gRpc.client.ssl.KeyStorePwd", AliasKey="gRpc.client.ssl.KeyAlias", AliasPwdKey="gRpc.client.ssl.KeyPwd", desc="Path to key store file. Use SSL/TLS when keystore is provided, otherwise use plain socket", callbackMethodName4Dump="generateTemplate_keystore") protected volatile KeyManagerFactory kmf
    • tmf

      @ConfigHeader(title="3. gRpc.client truststore") @Config(key="gRpc.client.ssl.TrustStore", StorePwdKey="gRpc.client.ssl.TrustStorePwd", callbackMethodName4Dump="generateTemplate_truststore", desc="Path to trust store file. Auth the remote peer certificate when a truststore is provided, otherwise blindly trust all remote peer certificate") protected volatile TrustManagerFactory tmf
    • overrideAuthority

      @Config(key="gRpc.client.ssl.overrideAuthority", predefinedValue="server2.4096.jexpress.org", desc="NOT for PRODUCTION! Set server certificate DNS name here when server is not yet running on its certificate Subject Alternative Names (SAN)") protected volatile String overrideAuthority
    • channelBuilder

      protected volatile io.grpc.netty.shaded.io.grpc.netty.NettyChannelBuilder channelBuilder
  • Constructor Details

    • GRPCClientConfig

      protected GRPCClientConfig()
  • Method Details