You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Leo Li (JIRA)" <ji...@apache.org> on 2006/12/28 03:00:22 UTC
[jira] Updated: (HARMONY-2909)
[classlib][security]X509CRLSelector.getIssuerNames() should contain a byte
array instead of the string representing it if the byte array is added to
the X509CRLSelector by addIssueName().
[ http://issues.apache.org/jira/browse/HARMONY-2909?page=all ]
Leo Li updated HARMONY-2909:
----------------------------
Attachment: patch-2909.diff
> [classlib][security]X509CRLSelector.getIssuerNames() should contain a byte array instead of the string representing it if the byte array is added to the X509CRLSelector by addIssueName().
> -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: HARMONY-2909
> URL: http://issues.apache.org/jira/browse/HARMONY-2909
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Leo Li
> Attachments: patch-2909.diff
>
>
> 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