Skip to content

Commit cb977ce

Browse files
committed
Polish contribution
See gh-153
1 parent d955cc8 commit cb977ce

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

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

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -595,14 +595,6 @@ 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-
606598
/**
607599
* Set the WS-I Basic Security Profile compliance mode. Default is {@code true}.
608600
*/
@@ -623,6 +615,18 @@ public void setAddInclusivePrefixes(boolean addInclusivePrefixes) {
623615
this.addInclusivePrefixes = addInclusivePrefixes;
624616
}
625617

618+
/**
619+
* Set whether to use a single certificate or a whole certificate chain when
620+
* constructing a {@code BinarySecurityToken} used for direct reference in signature.
621+
* default is {@code true}, meaning that only a single certificate is used.
622+
* @param useSingleCertificate whether to use a single certificate
623+
* @since 4.1.0
624+
* @see WSHandlerConstants#USE_SINGLE_CERTIFICATE
625+
*/
626+
public void setUseSingleCertificate(boolean useSingleCertificate) {
627+
this.handler.setOption(WSHandlerConstants.USE_SINGLE_CERTIFICATE, useSingleCertificate);
628+
}
629+
626630
/**
627631
* Sets whether the RSA 1.5 key transport algorithm is allowed.
628632
*/

0 commit comments

Comments
 (0)