Skip to content

Commit

Permalink
SWS-761 - Add method to set digest algorithm for signature (WSS4J)
Browse files Browse the repository at this point in the history
  • Loading branch information
poutsma committed May 1, 2012
1 parent 0dd60b4 commit d631f72
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2005-2011 the original author or authors.
* Copyright 2005-2012 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -279,6 +279,13 @@ public void setSecurementSignatureAlgorithm(String securementSignatureAlgorithm)
handler.setOption(WSHandlerConstants.SIG_ALGO, securementSignatureAlgorithm);
}

/**
* Defines which signature digest algorithm to use.
*/
public void setSecurementSignatureDigestAlgorithm(String digestAlgorithm) {
handler.setOption(WSHandlerConstants.SIG_DIGEST_ALGO, digestAlgorithm);
}

public void setSecurementSignatureCrypto(Crypto securementSignatureCrypto) {
handler.setSecurementSignatureCrypto(securementSignatureCrypto);
}
Expand Down

0 comments on commit d631f72

Please sign in to comment.