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