use of iaik.pkcs.pkcs11.objects.PKCS11Object in project xipki by xipki.
the class IaikP11Slot method getAllCertificateObjects.
private List<X509PublicKeyCertificate> getAllCertificateObjects(Session session) throws P11TokenException {
X509PublicKeyCertificate template = new X509PublicKeyCertificate();
List<Storage> tmpObjects = getObjects(session, template);
List<X509PublicKeyCertificate> certs = new ArrayList<>(tmpObjects.size());
for (PKCS11Object tmpObject : tmpObjects) {
X509PublicKeyCertificate cert = (X509PublicKeyCertificate) tmpObject;
certs.add(cert);
}
return certs;
}
Aggregations