public class PKCS11ProviderConfiguration extends Object
It is recommended to supply either slot (number) or slotListIndex, but not both, since if the index and slot supplied does not match the device's view an error will occur.
Modifier and Type | Field and Description |
---|---|
protected String |
library
The pkcs11 library on the host to use.
|
protected String |
name
The name of the HSM slot.
|
protected String |
slot
The slot number to use.
|
protected Integer |
slotListIndex
The slot index to use.
|
protected Integer |
slotListIndexMaxRange
The maximum number och slots to use starting from the slotListIndex
|
Constructor and Description |
---|
PKCS11ProviderConfiguration() |
Modifier and Type | Method and Description |
---|---|
String |
getLibrary()
Returns the path to the pkcs11 library on the host to use for the provider.
|
String |
getName()
Returns the name of the HSM slot.
|
String |
getSlot()
Returns the slot number to use.
|
Integer |
getSlotListIndex()
Returns the slot list index to use.
|
Integer |
getSlotListIndexMaxRange()
Returns the maximum range of slot list indexes to traverse, starting from the active
slotListIndex . |
void |
setLibrary(String library)
Assigns the path to the pkcs11 library on the host to use for the provider.
|
void |
setName(String name)
Assigns the name of the HSM slot.
|
void |
setSlot(String slot)
Assigns the slot number to use.
|
void |
setSlotListIndex(Integer slotListIndex)
Assigns the slot list index to use.
|
void |
setSlotListIndexMaxRange(Integer slotListIndexMaxRange)
Assigns the slot list index max range
|
String |
toString() |
protected String library
protected String name
protected String slot
protected Integer slotListIndex
protected Integer slotListIndexMaxRange
public String getLibrary()
public void setLibrary(String library)
library
- path to pkcs11 librarypublic String getName()
public void setName(String name)
name
- the name of the HSM slotpublic String getSlot()
If null
is returned, the device will use the slot entry identified by the active slotListIndex
.
null
public void setSlot(String slot)
slot
- slot numberpublic Integer getSlotListIndex()
If no slot list index is assigned (null
is returned), the following logic applies:
public void setSlotListIndex(Integer slotListIndex)
slotListIndex
- slot list indexpublic Integer getSlotListIndexMaxRange()
slotListIndex
.public void setSlotListIndexMaxRange(Integer slotListIndexMaxRange)
slotListIndexMaxRange
- slot list index max rangeCopyright © 2018 Sweden Connect. All rights reserved.