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.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic InputStream
Retrieves the specified test certificate or key resource in src/main/resources/certs/ as anInputStream
.
-
Constructor Details
-
TlsTesting
private TlsTesting()
-
-
Method Details
-
loadCert
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
-