Class SslTestSupport
java.lang.Object
org.eclipse.aether.internal.test.util.http.SslTestSupport
Key and trust material shared by
HttpTransporterTest and HttpServer: the stores are copied from the
test resources into the build directory, where the server reads them, and the client side gets an
SSLContext that trusts them.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic SSLContextCreates anSSLContextfor the client that extends the default keystore and truststore with the entries fromSERVER_STORE_PATH(password"server-pwd") andCLIENT_STORE_PATH(password"client-pwd").static voidCopies the server and client stores from the test resources toSERVER_STORE_PATHandCLIENT_STORE_PATH, and createsPEM_QUICHE_SERVER_PATH.
-
Field Details
-
SERVER_STORE_PATH
-
CLIENT_STORE_PATH
-
PEM_QUICHE_SERVER_PATH
-
-
Method Details
-
installKeyStores
Copies the server and client stores from the test resources toSERVER_STORE_PATHandCLIENT_STORE_PATH, and createsPEM_QUICHE_SERVER_PATH. -
createClientSSLContext
Creates anSSLContextfor the client that extends the default keystore and truststore with the entries fromSERVER_STORE_PATH(password"server-pwd") andCLIENT_STORE_PATH(password"client-pwd").- Returns:
- an
SSLContextcombining default and custom key/trust material
-