Package org.xipki.security.pkcs11
Interface P11CryptServiceFactory
-
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
P11CryptServiceFactoryImpl
public interface P11CryptServiceFactory extends Closeable
Factory to createP11CryptService.- Since:
- 2.0.0
- Author:
- Lijun Liao (xipki)
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_P11MODULE_NAME
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Set<String>getModuleNames()P11CryptServicegetP11CryptService(String moduleName)Gets theP11CryptServiceof the given modulemoduleName.
-
-
-
Field Detail
-
DEFAULT_P11MODULE_NAME
static final String DEFAULT_P11MODULE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getP11CryptService
P11CryptService getP11CryptService(String moduleName) throws org.xipki.pkcs11.wrapper.TokenException, XiSecurityException
Gets theP11CryptServiceof the given modulemoduleName.- Parameters:
moduleName- Module name.nullfor default module name.- Returns:
- the
P11CryptServiceof the given module. - Throws:
org.xipki.pkcs11.wrapper.TokenException- if PKCS#11 token error occurs.XiSecurityException- if security error occurs.
-
-