From 565dce74f07a1d91748a13f08c059ff4e7be6e19 Mon Sep 17 00:00:00 2001 From: Jonas Christiaens Date: Thu, 13 Feb 2020 21:36:54 +0100 Subject: [PATCH 1/2] Enable the manipulation of the parameter USE_SINGLE_CERTIFICATE, thus enabling the choice of using valueType X509PKIPathv1 in stead of X509v3. --- .../ws/soap/security/wss4j2/Wss4jSecurityInterceptor.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/spring-ws-security/src/main/java/org/springframework/ws/soap/security/wss4j2/Wss4jSecurityInterceptor.java b/spring-ws-security/src/main/java/org/springframework/ws/soap/security/wss4j2/Wss4jSecurityInterceptor.java index 01dad04dd..c8963a313 100644 --- a/spring-ws-security/src/main/java/org/springframework/ws/soap/security/wss4j2/Wss4jSecurityInterceptor.java +++ b/spring-ws-security/src/main/java/org/springframework/ws/soap/security/wss4j2/Wss4jSecurityInterceptor.java @@ -496,6 +496,14 @@ public void setEnableRevocation(boolean enableRevocation) { this.enableRevocation = enableRevocation; } + /** + * Enables the {@code useSingleCertificate} attribute on WS-Security headers on outgoing messages. Default is + * {@code true}. + */ + public void set(boolean useSingleCertificate) { + handler.setOption(WSHandlerConstants.USE_SINGLE_CERTIFICATE, useSingleCertificate); + } + /** * Set the WS-I Basic Security Profile compliance mode. Default is {@code true}. */ From e0393dc9a02c55d0778dbe7ccf5f75c28899ade4 Mon Sep 17 00:00:00 2001 From: Jonas Christiaens Date: Wed, 21 Aug 2024 07:40:26 +0200 Subject: [PATCH 2/2] Enable the manipulation of the parameter USE_SINGLE_CERTIFICATE, thus enabling the choice of using valueType X509PKIPathv1 in stead of X509v3. --- .../ws/soap/security/wss4j2/Wss4jSecurityInterceptor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-ws-security/src/main/java/org/springframework/ws/soap/security/wss4j2/Wss4jSecurityInterceptor.java b/spring-ws-security/src/main/java/org/springframework/ws/soap/security/wss4j2/Wss4jSecurityInterceptor.java index c8963a313..b69b4fae0 100644 --- a/spring-ws-security/src/main/java/org/springframework/ws/soap/security/wss4j2/Wss4jSecurityInterceptor.java +++ b/spring-ws-security/src/main/java/org/springframework/ws/soap/security/wss4j2/Wss4jSecurityInterceptor.java @@ -500,7 +500,7 @@ public void setEnableRevocation(boolean enableRevocation) { * Enables the {@code useSingleCertificate} attribute on WS-Security headers on outgoing messages. Default is * {@code true}. */ - public void set(boolean useSingleCertificate) { + public void setUseSingleCertificate(boolean useSingleCertificate) { handler.setOption(WSHandlerConstants.USE_SINGLE_CERTIFICATE, useSingleCertificate); }