You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by mu...@apache.org on 2006/06/05 20:53:51 UTC
svn commit: r411889 -
/xml/security/trunk/src/org/apache/xml/security/encryption/XMLCipher.java
Author: mullan
Date: Mon Jun 5 11:53:51 2006
New Revision: 411889
URL: http://svn.apache.org/viewvc?rev=411889&view=rev
Log:
Fix findbugs bug:
Unread field: EncryptionPropertyImpl.attribute
Fixed bug by storing attributes in map.
Modified:
xml/security/trunk/src/org/apache/xml/security/encryption/XMLCipher.java
Modified: xml/security/trunk/src/org/apache/xml/security/encryption/XMLCipher.java
URL: http://svn.apache.org/viewvc/xml/security/trunk/src/org/apache/xml/security/encryption/XMLCipher.java?rev=411889&r1=411888&r2=411889&view=diff
==============================================================================
--- xml/security/trunk/src/org/apache/xml/security/encryption/XMLCipher.java (original)
+++ xml/security/trunk/src/org/apache/xml/security/encryption/XMLCipher.java Mon Jun 5 11:53:51 2006
@@ -27,6 +27,7 @@
import java.security.Key;
import java.security.NoSuchAlgorithmException;
import java.security.NoSuchProviderException;
+import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
@@ -3614,8 +3615,7 @@
private class EncryptionPropertyImpl implements EncryptionProperty {
private String target = null;
private String id = null;
- private String attributeName = null;
- private String attributeValue = null;
+ private HashMap attributeMap = new HashMap();
private List encryptionInformation = null;
/**
@@ -3649,12 +3649,11 @@
}
/** @inheritDoc */
public String getAttribute(String attribute) {
- return (attributeValue);
+ return (String) attributeMap.get(attribute);
}
/** @inheritDoc */
public void setAttribute(String attribute, String value) {
- attributeName = attribute;
- attributeValue = value;
+ attributeMap.put(attribute, value);
}
/** @inheritDoc */
public Iterator getEncryptionInformation() {