jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1225671 - /jmeter/trunk/src/components/org/apache/jmeter/assertions/SMIMEAssertion.java
Date Thu, 29 Dec 2011 22:17:37 GMT
Author: pmouawad
Date: Thu Dec 29 22:17:37 2011
New Revision: 1225671

URL: http://svn.apache.org/viewvc?rev=1225671&view=rev
Log:
Using original field

Modified:
    jmeter/trunk/src/components/org/apache/jmeter/assertions/SMIMEAssertion.java

Modified: jmeter/trunk/src/components/org/apache/jmeter/assertions/SMIMEAssertion.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/components/org/apache/jmeter/assertions/SMIMEAssertion.java?rev=1225671&r1=1225670&r2=1225671&view=diff
==============================================================================
--- jmeter/trunk/src/components/org/apache/jmeter/assertions/SMIMEAssertion.java (original)
+++ jmeter/trunk/src/components/org/apache/jmeter/assertions/SMIMEAssertion.java Thu Dec 29
22:17:37 2011
@@ -45,6 +45,7 @@ import org.apache.jmeter.samplers.Sample
 import org.apache.jorphan.logging.LoggingManager;
 import org.apache.log.Logger;
 import org.bouncycastle.asn1.x509.GeneralName;
+import org.bouncycastle.asn1.x509.X509Name;
 import org.bouncycastle.cms.CMSException;
 import org.bouncycastle.cms.SignerInformation;
 import org.bouncycastle.cms.SignerInformationStore;
@@ -318,7 +319,7 @@ class SMIMEAssertion {
         List<String> res = new ArrayList<String>();
 
         X509Principal subject = PrincipalUtil.getSubjectX509Principal(cert);
-        Iterator<?> addressIt = subject.getValues(X509Principal.EmailAddress).iterator();
+        Iterator<?> addressIt = subject.getValues(X509Name.EmailAddress).iterator();
         while (addressIt.hasNext()) {
             String address = (String) addressIt.next();
             res.add(address);



Mime
View raw message