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,
                     boolean wrapperDebugVersion)
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. 
 | 
static void | 
loadWrapperFromJar(boolean wrapperDebugVersion)
Tries to load the PKCS#11 wrapper native library included in the class path (jar file). 
 | 
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, boolean wrapperDebugVersion) throws java.io.IOException
pkcs11ModulePath - The path to the PKCS#11 library.wrapperDebugVersion - true, if the PKCS#11 wrapper library's debug version shall be loadedjava.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.public static void loadWrapperFromJar(boolean wrapperDebugVersion)
                               throws java.io.IOException
wrapperDebugVersion - true, if the PKCS#11 wrapper library's debug version shall be loadedjava.io.IOException - if the wrapper native library for the system's architecture can't be found in the jar
           file or if corresponding native library can't be written to temporary directoryIAIK JavaSecurity Website http://jce.iaik.tugraz.at/
             
 IAIK at Graz University of Technology, Austria, Europe             
 Copyright 2001-2023 IAIK, Graz University of Technology, Inffeldgasse 16a, 8010 Graz, Austria. All Rights Reserved.                      version 1.6.9