SWS-761 - Add method to set digest algorithm for signature (WSS4J)
This commit is contained in:
@@ -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.
|
||||
@@ -279,6 +279,13 @@ public class Wss4jSecurityInterceptor extends AbstractWsSecurityInterceptor impl
|
||||
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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user