Class TestChannelWithCertificates (0.22.1)
Stay organized with collections
Save and categorize content based on your preferences.
publicfinalclass TestChannelWithCertificatesUtility functions for creating GRPC Channels that require certificates.
Inherited Members
Static Methods
getChannelBuilderForTestHost(String host, int sslPort)
publicstaticManagedChannelBuilder<?>getChannelBuilderForTestHost(Stringhost,intsslPort)Create a channel builder to a service running behind a default test host configuration.
| Parameters | |
|---|---|
| Name | Description |
host |
String name running the test host, typically localhost. |
sslPort |
int of the test host which must have HTTP2 enabled. |
| Returns | |
|---|---|
| Type | Description |
io.grpc.ManagedChannelBuilder<?> |
a connected Channel |
getChannelBuilderForTestHost(String host, int sslPort, String certPath, String hostInCert)
publicstaticManagedChannelBuilder<?>getChannelBuilderForTestHost(Stringhost,intsslPort,StringcertPath,StringhostInCert)Create a channel builder to a service running behind the specified test host.
| Parameters | |
|---|---|
| Name | Description |
host |
String name running the test host, typically localhost. |
sslPort |
int of the test host which must have HTTP2 enabled. |
certPath |
String path to the certificate file |
hostInCert |
String the name of the test host within the certificate file |
| Returns | |
|---|---|
| Type | Description |
io.grpc.ManagedChannelBuilder<?> |
a connected Channel |
getChannelForTestHost(String host, int sslPort)
publicstaticManagedChannelgetChannelForTestHost(Stringhost,intsslPort)Create a channel to a service running behind a default test host configuration.
| Parameters | |
|---|---|
| Name | Description |
host |
String name running the test host, typically localhost. |
sslPort |
int of the test host which must have HTTP2 enabled. |
| Returns | |
|---|---|
| Type | Description |
io.grpc.ManagedChannel |
a connected Channel |
getChannelForTestHost(String host, int sslPort, String certPath, String hostInCert)
publicstaticManagedChannelgetChannelForTestHost(Stringhost,intsslPort,StringcertPath,StringhostInCert)Create a channel to a service running behind the specified test host configuration.
| Parameters | |
|---|---|
| Name | Description |
host |
String name running the test host, typically localhost. |
sslPort |
int of the test host which must have HTTP2 enabled. |
certPath |
String path to the certificate file |
hostInCert |
String the name of the test host within the certificate file |
| Returns | |
|---|---|
| Type | Description |
io.grpc.ManagedChannel |
a connected Channel |