public X509Certificate getCert(P11SlotIdentifier slotId, P11ObjectIdentifier certId) throws P11TokenException { P11Slot slot = module.getSlot(slotId); if (slot == null) { return null; } X509Cert cert = slot.getCert(certId); return (cert == null) ? null : cert.getCert(); }
public X509Certificate getCert(P11SlotIdentifier slotId, P11ObjectIdentifier certId) throws P11TokenException { P11Slot slot = module.getSlot(slotId); if (slot == null) { return null; } X509Cert cert = slot.getCert(certId); return (cert == null) ? null : cert.getCert(); }