public class PKCS11Connector
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
PKCS11Connector()
Empty constructor for internal use only.
|
Modifier and Type | Method and Description |
---|---|
static PKCS11 |
connectToPKCS11Module(java.lang.String pkcs11ModulePath)
Connect to a PKCS#11 module and get an interface to it.
|
static PKCS11 |
connectToPKCS11Module(java.lang.String pkcs11ModulePath,
java.lang.String pkcs11WrapperPath)
Connect to a PKCS#11 module with the specified PKCS#11-wrapper native library and get an interface to it.
|
protected PKCS11Connector()
public static PKCS11 connectToPKCS11Module(java.lang.String pkcs11ModulePath) throws java.io.IOException
pkcs11ModulePath
- The path to the PKCS#11 library.java.io.IOException
- If finding the module or connecting to it fails.public static PKCS11 connectToPKCS11Module(java.lang.String pkcs11ModulePath, java.lang.String pkcs11WrapperPath) throws java.io.IOException
pkcs11ModulePath
- The path to the PKCS#11 library.pkcs11WrapperPath
- The absolute path to the PKCS#11-wrapper native library including the filenamejava.io.IOException
- If finding the module or connecting to it fails.