Skip to content

Commit ef00c3e

Browse files
committed
Apply cert constraints in verifyCertificateTrust as well
Closes gh-1520
1 parent 80f8d61 commit ef00c3e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

+1
Original file line numberDiff line numberDiff line change
@@ -926,6 +926,7 @@ protected void verifyCertificateTrust(WSHandlerResult result) throws WSSecurityE
926926
RequestData requestData = new RequestData();
927927
requestData.setSigVerCrypto(this.validationSignatureCrypto);
928928
requestData.setEnableRevocation(this.enableRevocation);
929+
requestData.setSubjectCertConstraints(this.signatureSubjectDnPatterns);
929930

930931
Validator validator = (this.wssConfig != null) ? this.wssConfig.getValidator(WSConstants.SIGNATURE) : null;
931932
if (validator == null) {

0 commit comments

Comments
 (0)