Package org.xipki.security.pkcs11
Interface P11ModuleFactory
-
- All Known Implementing Classes:
EmulatorP11ModuleFactory,NativeP11ModuleFactory
public interface P11ModuleFactoryFactory to createP11Module.- Since:
- 3.0.1
- Author:
- Lijun Liao (xipki)
-
-
Method Summary
All Methods Instance Methods Abstract 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
boolean canCreateModule(String type)
Indicates whether a PKCS#11 module of the giventypecan be created or not.- 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
P11Module newModule(P11ModuleConf conf) throws org.xipki.pkcs11.wrapper.TokenException
Creates a new signer.- 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.
-
-