Package io.grpc.testing
Class TlsTesting
- java.lang.Object
-
- io.grpc.testing.TlsTesting
-
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/1791") public final class TlsTesting extends Object
Convenience utilities for using TLS in tests.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static InputStream
loadCert(String name)
Retrieves the specified test certificate or key resource in src/main/resources/certs/ as anInputStream
.
-
-
-
Method Detail
-
loadCert
public static InputStream loadCert(String name)
Retrieves the specified test certificate or key resource in src/main/resources/certs/ as anInputStream
.- Parameters:
name
- name of a file in src/main/resources/certs/, e.g.,"ca.key"
.- Since:
- 1.8.0
-
-