/** * Get information about this slot object. * * @return An object that contains information about this slot. * @exception TokenException * If reading the information fails. * @preconditions * @postconditions (result <> null) */ public SlotInfo getSlotInfo() throws TokenException { CK_SLOT_INFO ckSlotInfo; try { ckSlotInfo = module.getPKCS11Module().C_GetSlotInfo(slotID); } catch (sun.security.pkcs11.wrapper.PKCS11Exception ex) { throw new PKCS11Exception(ex); } return new SlotInfo(ckSlotInfo); }