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 fec85315..31576e18 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 @@ -595,6 +595,14 @@ public class Wss4jSecurityInterceptor extends AbstractWsSecurityInterceptor impl 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}. */