[java-shib-shared] branch main updated: Expose Jetty keystore and password for other tests.
Codeberg
noreply at shibboleth.net
Thu Jul 9 12:41:54 UTC 2026
This is an automated email from the git hooks/post-receive script.
codeberg pushed a commit to branch main
in repository java-shib-shared.
View the commit online:
https://codeberg.org/Shibboleth/java-shib-shared/commit/b462e6f0741f41753dc980ddce9a4c0c2d4ebf86
The following commit(s) were added to refs/heads/main by this push:
new b462e6f0 Expose Jetty keystore and password for other tests.
b462e6f0 is described below
commit b462e6f0741f41753dc980ddce9a4c0c2d4ebf86
Author: Scott Cantor <scott at restingparrotsoftware.com>
AuthorDate: Thu Jul 9 08:41:45 2026 -0400
Expose Jetty keystore and password for other tests.
---
.../net/shibboleth/shared/testing/EmbeddedJetty.java | 20 +++++++++++++++++++-
1 file changed, 19 insertions(+), 1 deletion(-)
diff --git a/shib-testing/src/main/java/net/shibboleth/shared/testing/EmbeddedJetty.java b/shib-testing/src/main/java/net/shibboleth/shared/testing/EmbeddedJetty.java
index 6506f302..83ae0bb7 100644
--- a/shib-testing/src/main/java/net/shibboleth/shared/testing/EmbeddedJetty.java
+++ b/shib-testing/src/main/java/net/shibboleth/shared/testing/EmbeddedJetty.java
@@ -104,7 +104,7 @@ public class EmbeddedJetty implements Closeable {
final var sslContextFactory = new SslContextFactory.Server();
sslContextFactory.setKeyStoreType("PKCS12");
sslContextFactory.setKeyStoreResource(ResourceFactory.of(server).newClassLoaderResource("/net/shibboleth/shared/testing/credentials/localhost.p12"));
- sslContextFactory.setKeyStorePassword("changeit");
+ sslContextFactory.setKeyStorePassword(getServerKeystorePassword());
resolveListenAddresses();
ArrayList<ServerConnector> connectors = new ArrayList<>();
@@ -169,6 +169,24 @@ public class EmbeddedJetty implements Closeable {
@Nonnull public static Resource getServerCertficateResource() {
return ResourceHelper.of(new ClassPathResource("/net/shibboleth/shared/testing/credentials/localhost.pem"));
}
+
+ /**
+ * Returns the TLS keystore used by the server as a resource in PKCS12 format
+ *
+ * @return TLS server keystore resource
+ */
+ @Nonnull public static Resource getServerKeystoreResource() {
+ return ResourceHelper.of(new ClassPathResource("/net/shibboleth/shared/testing/credentials/localhost.p12"));
+ }
+
+ /**
+ * Returns the TLS server keystore password.
+ *
+ * @return keystore password
+ */
+ @Nonnull public static String getServerKeystorePassword() {
+ return "changeit";
+ }
/**
* Jetty handler to server content.
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list