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
This commit is contained in:
Jonas Christiaens
2020-02-13 21:36:54 +01:00
committed by Stéphane Nicoll
parent ef6dbe69cc
commit d955cc878d

View File

@@ -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}.
*/