public abstract class P11Module extends Object
| Modifier and Type | Field and Description |
|---|---|
protected P11ModuleConf |
conf |
| Constructor and Description |
|---|
P11Module(P11ModuleConf conf) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
close() |
P11ModuleConf |
getConf() |
abstract String |
getDescription() |
String |
getName() |
P11Slot |
getSlot(P11SlotId slotId)
Returns slot for the given
slotId. |
P11SlotId |
getSlotIdForId(long id) |
P11SlotId |
getSlotIdForIndex(int index) |
List<P11SlotId> |
getSlotIds() |
boolean |
isReadOnly() |
protected void |
setSlots(Set<P11Slot> slots) |
protected final P11ModuleConf conf
public P11Module(P11ModuleConf conf)
public abstract void close()
public abstract String getDescription()
public String getName()
public boolean isReadOnly()
public P11ModuleConf getConf()
public P11Slot getSlot(P11SlotId slotId) throws org.xipki.pkcs11.wrapper.TokenException
slotId.slotId - slot identifier. Must not be null.org.xipki.pkcs11.wrapper.TokenException - if PKCS#11 token error occurspublic P11SlotId getSlotIdForIndex(int index) throws org.xipki.pkcs11.wrapper.TokenException
org.xipki.pkcs11.wrapper.TokenExceptionpublic P11SlotId getSlotIdForId(long id) throws org.xipki.pkcs11.wrapper.TokenException
org.xipki.pkcs11.wrapper.TokenExceptionCopyright © 2023. All rights reserved.