Skip to content

Commit d631f72

Browse files
committed
SWS-761 - Add method to set digest algorithm for signature (WSS4J)
1 parent 0dd60b4 commit d631f72

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

security/src/main/java/org/springframework/ws/soap/security/wss4j/Wss4jSecurityInterceptor.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2005-2011 the original author or authors.
2+
* Copyright 2005-2012 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -279,6 +279,13 @@ public void setSecurementSignatureAlgorithm(String securementSignatureAlgorithm)
279279
handler.setOption(WSHandlerConstants.SIG_ALGO, securementSignatureAlgorithm);
280280
}
281281

282+
/**
283+
* Defines which signature digest algorithm to use.
284+
*/
285+
public void setSecurementSignatureDigestAlgorithm(String digestAlgorithm) {
286+
handler.setOption(WSHandlerConstants.SIG_DIGEST_ALGO, digestAlgorithm);
287+
}
288+
282289
public void setSecurementSignatureCrypto(Crypto securementSignatureCrypto) {
283290
handler.setSecurementSignatureCrypto(securementSignatureCrypto);
284291
}

0 commit comments

Comments
 (0)