use of java.security.cert.CRL in project j2objc by google.
the class IosCertificateFactory method engineGenerateCRLs.
@Override
public Collection<? extends CRL> engineGenerateCRLs(InputStream inStream) throws CRLException {
List<CRL> result = new ArrayList<CRL>();
CRL crl;
while ((crl = engineGenerateCRL(inStream)) != null) {
result.add(crl);
}
return result;
}
use of java.security.cert.CRL in project robovm by robovm.
the class CertStoreCollectionSpi method engineGetCRLs.
public Collection engineGetCRLs(CRLSelector selector) throws CertStoreException {
List col = new ArrayList();
Iterator iter = params.getCollection().iterator();
if (selector == null) {
while (iter.hasNext()) {
Object obj = iter.next();
if (obj instanceof CRL) {
col.add(obj);
}
}
} else {
while (iter.hasNext()) {
Object obj = iter.next();
if ((obj instanceof CRL) && selector.match((CRL) obj)) {
col.add(obj);
}
}
}
return col;
}
use of java.security.cert.CRL in project robovm by robovm.
the class CRLTest method testToString.
//
// the following tests just call methods
// that are abstract in <code>Certificate</code>
// (So they just like signature tests)
//
/**
* Test for <code>toString()</code> method
*/
public final void testToString() {
CRL crl = new MyCRL("TEST_TYPE");
crl.toString();
}
use of java.security.cert.CRL in project robovm by robovm.
the class CRLTest method testGetType01.
/**
* Test #1 for <code>getType()</code> method<br>
* Assertion: returns <code>CRL</code> type
*/
public final void testGetType01() {
CRL crl = new MyCRL("TEST_TYPE");
assertEquals("TEST_TYPE", crl.getType());
}
use of java.security.cert.CRL in project robovm by robovm.
the class CRLTest method testIsRevoked.
/**
* Test for <code>isRevoked()</code> method
*/
public final void testIsRevoked() {
CRL crl = new MyCRL("TEST_TYPE");
crl.isRevoked(null);
}
Aggregations