Class TlsTesting


  • @ExperimentalApi("https://github.com/grpc/grpc-java/issues/1791")
    public final class TlsTesting
    extends java.lang.Object
    Convenience utilities for using TLS in tests.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private TlsTesting()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.io.InputStream loadCert​(java.lang.String name)
      Retrieves the specified test certificate or key resource in src/main/resources/certs/ as an InputStream.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TlsTesting

        private TlsTesting()
    • Method Detail

      • loadCert

        public static java.io.InputStream loadCert​(java.lang.String name)
        Retrieves the specified test certificate or key resource in src/main/resources/certs/ as an InputStream.
        Parameters:
        name - name of a file in src/main/resources/certs/, e.g., "ca.key".
        Since:
        1.8.0