| Modifier and Type | Field and Description |
|---|---|
protected P11ModuleConf |
conf |
| Constructor and Description |
|---|
AbstractP11Module(P11ModuleConf conf) |
| Modifier and Type | Method and Description |
|---|---|
P11ModuleConf |
getConf() |
String |
getName() |
P11Slot |
getSlot(P11SlotIdentifier slotId)
Returns slot for the given
slotId. |
P11SlotIdentifier |
getSlotIdForId(long id) |
P11SlotIdentifier |
getSlotIdForIndex(int index) |
List<P11SlotIdentifier> |
getSlotIds() |
boolean |
isReadOnly() |
protected void |
setSlots(Set<P11Slot> slots) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, getDescriptionprotected final P11ModuleConf conf
public AbstractP11Module(P11ModuleConf conf)
public boolean isReadOnly()
isReadOnly in interface P11Modulepublic P11ModuleConf getConf()
public P11Slot getSlot(P11SlotIdentifier slotId) throws P11TokenException
P11ModuleslotId.getSlot in interface P11ModuleslotId - slot identifier. Must not be null.P11TokenException - if PKCS#11 token error occurspublic List<P11SlotIdentifier> getSlotIds()
getSlotIds in interface P11Modulepublic P11SlotIdentifier getSlotIdForIndex(int index) throws P11UnknownEntityException
getSlotIdForIndex in interface P11ModuleP11UnknownEntityExceptionpublic P11SlotIdentifier getSlotIdForId(long id) throws P11UnknownEntityException
getSlotIdForId in interface P11ModuleP11UnknownEntityExceptionCopyright © 2018. All rights reserved.