You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@abdera.apache.org by "Leo Li (JIRA)" <ji...@apache.org> on 2006/12/27 09:52:21 UTC

[jira] Created: (ABDERA-32) [java][security]X509CRLSelector.getIssueNames() should get a byte array instead of a string represents it if the byte array is addIssuerName() into the X509CRLSelector.

[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

        

[jira] Closed: (ABDERA-32) [java][security]X509CRLSelector.getIssueNames() should get a byte array instead of a string represents it if the byte array is addIssuerName() into the X509CRLSelector.

Posted by "James M Snell (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ABDERA-32?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James M Snell closed ABDERA-32.
-------------------------------

    Resolution: Fixed

Wrong project

> [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: https://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.
-
You can reply to this email to add a comment to the issue online.