Package org.xipki.security.pkcs11
Class NativeP11ModuleFactory
- java.lang.Object
-
- org.xipki.security.pkcs11.NativeP11ModuleFactory
-
- All Implemented Interfaces:
P11ModuleFactory
public class NativeP11ModuleFactory extends Object implements P11ModuleFactory
P11ModuleFactoryto createP11Moduleof type "native".- Author:
- Lijun Liao (xipki)
-
-
Constructor Summary
Constructors Constructor Description NativeP11ModuleFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanCreateModule(String type)Indicates whether a PKCS#11 module of the giventypecan be created or not.P11ModulenewModule(P11ModuleConf conf)Creates a new signer.
-
-
-
Method Detail
-
canCreateModule
public boolean canCreateModule(String type)
Description copied from interface:P11ModuleFactoryIndicates whether a PKCS#11 module of the giventypecan be created or not.- Specified by:
canCreateModulein interfaceP11ModuleFactory- Parameters:
type- Type of the signer. Must not benull.- Returns:
- true if PKCS#11 module of the given type can be created, false otherwise.
-
newModule
public P11Module newModule(P11ModuleConf conf) throws org.xipki.pkcs11.wrapper.TokenException
Description copied from interface:P11ModuleFactoryCreates a new signer.- Specified by:
newModulein interfaceP11ModuleFactory- Parameters:
conf- Configuration of the PKCS#11 module. Must not benull.- Returns:
- new PKCS#11 module.
- Throws:
org.xipki.pkcs11.wrapper.TokenException- if PKCS#11 module could not be created.
-
-