Code example for X509CertSelector

0
        Security.removeProvider(mProv.getName());
    } 
 
    private void checkResult(CertStore certS)   throws CertStoreException, 
            InvalidAlgorithmParameterException { 
        CertSelector certSelector = new X509CertSelector();
        CRLSelector crlSelector = new X509CRLSelector();
        Collection collection = certS.getCertificates(certSelector);
        assertNull("Not null collection", collection);
        collection = certS.getCRLs(crlSelector);
        assertNull("Not null collection", collection);
    } 
 
    /** 
     * Test for method   
     * <code>getInstance(String type, CertStoreParameters params)</code>   
     * Assertions: 
     * throws NullPointerException when type is null 
     * throws NoSuchAlgorithmException when type is incorrect;  
     * throws InvalidAlgorithmParameterException  when params is null  
     * or has incorrect value;