Skip to content

Commit 8569fd3

Browse files
author
Andreas Winter
committed
Change description; remove useless code
1 parent 70625d6 commit 8569fd3

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

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

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -219,13 +219,12 @@ public Wss4jSecurityInterceptor(WSSecurityEngine securityEngine) {
219219
this.securityEngine = securityEngine;
220220
}
221221

222-
/**
222+
/**
223223
* Certificate constraints which will be applied to the subject DN of the certificate used for
224224
* signature validation, after trust verification of the certificate chain associated with the
225225
* certificate.
226226
*
227-
* @param patterns A comma separated String of regular expressions which will be applied to
228-
* the subject DN.
227+
* @param patterns A list of regex patterns which will be applied to the subject DN.
229228
*
230229
* @see <a href="https://ws.apache.org/wss4j/config.html">WSS4J configuration: SIG_SUBJECT_CERT_CONSTRAINTS</a>
231230
*/
@@ -923,14 +922,4 @@ protected void cleanUp() {
923922
}
924923
}
925924
}
926-
927-
private List<Pattern> parseSubjectCertConstrainsAsPatternList() {
928-
String commaSeparatedCertConstraintPatterns = handler.getStringOption(ConfigurationConstants.SIG_SUBJECT_CERT_CONSTRAINTS);
929-
if (commaSeparatedCertConstraintPatterns != null && !commaSeparatedCertConstraintPatterns.isEmpty()) {
930-
String[] patternStrings = commaSeparatedCertConstraintPatterns.split(",");
931-
return unmodifiableList(Arrays.stream(patternStrings).map(Pattern::compile).collect(Collectors.toList()));
932-
} else {
933-
return emptyList();
934-
}
935-
}
936925
}

0 commit comments

Comments
 (0)