MCPcopy Create free account
hub / github.com/grpc/grpc-java / loadCert

Method loadCert

testing/src/main/java/io/grpc/testing/TlsTesting.java:33–35  ·  view source on GitHub ↗

Retrieves the specified test certificate or key resource in src/main/resources/certs/ as an InputStream. @param name name of a file in src/main/resources/certs/, e.g., "ca.key". @since 1.8.0

(String name)

Source from the content-addressed store, hash-verified

31 * @since 1.8.0
32 */
33 public static InputStream loadCert(String name) {
34 return TestUtils.class.getResourceAsStream("/certs/" + name);
35 }
36
37 private TlsTesting() {}
38}

Calls

no outgoing calls

Tested by

no test coverage detected