Skip to content

Commit d955cc8

Browse files
cjsrsnicoll
authored andcommitted
Add support for configuring WSS4J's USE_SINGLE_CERTIFICATE option
This commit allows to configure the `USE_SINGLE_CERTIFICATE` option, which enables the choice of using valueType X509PKIPathv1 instead of X509v3. See gh-153
1 parent ef6dbe6 commit d955cc8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Diff for: spring-ws-security/src/main/java/org/springframework/ws/soap/security/wss4j2/Wss4jSecurityInterceptor.java

+8
Original file line numberDiff line numberDiff line change
@@ -595,6 +595,14 @@ public void setEnableRevocation(boolean enableRevocation) {
595595
this.enableRevocation = enableRevocation;
596596
}
597597

598+
/**
599+
* Enables the {@code useSingleCertificate} attribute on WS-Security headers on outgoing messages. Default is
600+
* {@code true}.
601+
*/
602+
public void setUseSingleCertificate(boolean useSingleCertificate) {
603+
handler.setOption(WSHandlerConstants.USE_SINGLE_CERTIFICATE, useSingleCertificate);
604+
}
605+
598606
/**
599607
* Set the WS-I Basic Security Profile compliance mode. Default is {@code true}.
600608
*/

0 commit comments

Comments
 (0)