use of java.security.cert.CRLSelector in project robovm by robovm.
the class CertStoreSpiTest method testCertStoreSpi01.
/**
* Test for <code>CertStoreSpi</code> constructor Assertion: constructs
* CertStoreSpi
*/
public void testCertStoreSpi01() throws InvalidAlgorithmParameterException, CertStoreException {
CertStoreSpi certStoreSpi = null;
//new
CertSelector certSelector = new tmpCertSelector();
// X509CertSelector();
//new X509CRLSelector();
CRLSelector crlSelector = new tmpCRLSelector();
try {
certStoreSpi = new MyCertStoreSpi(null);
fail("InvalidAlgorithmParameterException must be thrown");
} catch (InvalidAlgorithmParameterException e) {
}
certStoreSpi = new MyCertStoreSpi(new MyCertStoreParameters());
assertNull("Not null collection", certStoreSpi.engineGetCertificates(certSelector));
assertNull("Not null collection", certStoreSpi.engineGetCRLs(crlSelector));
}
Aggregations