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(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) |
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(P11SlotIdentifier slotId) throws P11TokenException
slotId.slotId - slot identifier. Must not be null.P11TokenException - if PKCS#11 token error occurspublic List<P11SlotIdentifier> getSlotIds()
public P11SlotIdentifier getSlotIdForIndex(int index) throws P11UnknownEntityException
P11UnknownEntityExceptionpublic P11SlotIdentifier getSlotIdForId(long id) throws P11UnknownEntityException
P11UnknownEntityExceptionCopyright © 2019. All rights reserved.