@ExperimentalApi(value="https://github.com/grpc/grpc-java/issues/1791") public class TestUtils extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.security.cert.X509Certificate |
loadX509Cert(java.lang.String fileName)
Deprecated.
Not for public use
|
static javax.net.ssl.SSLSocketFactory |
newSslSocketFactoryForCa(java.security.Provider provider,
java.io.File certChainFile)
Deprecated.
Not for public use
|
static java.util.List<java.lang.String> |
preferredTestCiphers()
Deprecated.
Not for public use
|
static ServerInterceptor |
recordRequestHeadersInterceptor(java.util.concurrent.atomic.AtomicReference<Metadata> headersCapture)
Capture the request headers from a client.
|
public static ServerInterceptor recordRequestHeadersInterceptor(java.util.concurrent.atomic.AtomicReference<Metadata> headersCapture)
@Deprecated public static java.util.List<java.lang.String> preferredTestCiphers()
@Deprecated
public static java.security.cert.X509Certificate loadX509Cert(java.lang.String fileName)
throws java.security.cert.CertificateException,
java.io.IOException
fileName - name of a file in src/main/resources/certs.java.security.cert.CertificateExceptionjava.io.IOException@Deprecated
public static javax.net.ssl.SSLSocketFactory newSslSocketFactoryForCa(java.security.Provider provider,
java.io.File certChainFile)
throws java.lang.Exception
certChainFile as its only root certificate.java.lang.Exception