You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wss4j-dev@ws.apache.org by we...@apache.org on 2005/10/15 10:40:40 UTC
svn commit: r321315 -
/webservices/wss4j/trunk/src/org/apache/ws/security/message/WSEncryptBody.java
Author: werner
Date: Sat Oct 15 01:40:35 2005
New Revision: 321315
URL: http://svn.apache.org/viewcvs?rev=321315&view=rev
Log:
Honor JCE provider info in WSConfig during encryption.
Modified:
webservices/wss4j/trunk/src/org/apache/ws/security/message/WSEncryptBody.java
Modified: webservices/wss4j/trunk/src/org/apache/ws/security/message/WSEncryptBody.java
URL: http://svn.apache.org/viewcvs/webservices/wss4j/trunk/src/org/apache/ws/security/message/WSEncryptBody.java?rev=321315&r1=321314&r2=321315&view=diff
==============================================================================
--- webservices/wss4j/trunk/src/org/apache/ws/security/message/WSEncryptBody.java (original)
+++ webservices/wss4j/trunk/src/org/apache/ws/security/message/WSEncryptBody.java Sat Oct 15 01:40:35 2005
@@ -467,7 +467,13 @@
XMLCipher xmlCipher = null;
try {
- xmlCipher = XMLCipher.getInstance(symEncAlgo);
+ String provider = wssConfig.getJceProviderId();
+ if (provider == null) {
+ xmlCipher = XMLCipher.getInstance(symEncAlgo);
+ }
+ else {
+ xmlCipher = XMLCipher.getProviderInstance(symEncAlgo, provider);
+ }
} catch (XMLEncryptionException e3) {
throw new WSSecurityException(WSSecurityException.UNSUPPORTED_ALGORITHM, null, null, e3);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: wss4j-dev-help@ws.apache.org