[java][security]X509CRLSelector.getIssueNames() should get a byte array instead
of a string represents it if the byte array is addIssuerName() into the
X509CRLSelector.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Key: ABDERA-32
URL: http://issues.apache.org/jira/browse/ABDERA-32
Project: Abdera
Issue Type: Bug
Reporter: Leo Li
Here is a testcase:
public void test_addIssuerName$B_5() throws Exception {
X509CRLSelector x509CRLSelector= new X509CRLSelector();
X500Principal x500Principal = new X500Principal("CN=Duke, OU=JavaSoft,
O=Sun Microsystems, C=US");
byte[] encoded = x500Principal.getEncoded();
x509CRLSelector.addIssuerName(encoded);
Collection<Object> c = x509CRLSelector.getIssuerNames();
assertEquals(1, c.size());
byte[] bytes = (byte[]) c.iterator().next();
assertTrue(Arrays.equals(encoded, bytes));
}
RI passes.
Harmony fails.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira