@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 io.grpc.ServerInterceptor |
recordRequestHeadersInterceptor(AtomicReference<io.grpc.Metadata> headersCapture)
Capture the request headers from a client.
|
public static io.grpc.ServerInterceptor recordRequestHeadersInterceptor(AtomicReference<io.grpc.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.CertificateExceptionIOException@Deprecated public static SSLSocketFactory newSslSocketFactoryForCa(Provider provider, File certChainFile) throws Exception
certChainFile as its only root certificate.Exception