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..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 @@ -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 setUseSingleCertificate(boolean useSingleCertificate) { + handler.setOption(WSHandlerConstants.USE_SINGLE_CERTIFICATE, useSingleCertificate); + } + /** * Set the WS-I Basic Security Profile compliance mode. Default is {@code true}. */