public class P11CryptServiceFactoryImpl extends Object implements P11CryptServiceFactory
P11CryptServiceFactory.DEFAULT_P11MODULE_NAME| Constructor and Description |
|---|
P11CryptServiceFactoryImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Set<String> |
getModuleNames() |
P11CryptService |
getP11CryptService(String moduleName)
Gets the
P11CryptService of the given module moduleName. |
void |
init() |
void |
setP11ModuleFactoryRegister(P11ModuleFactoryRegister p11ModuleFactoryRegister) |
void |
setPasswordResolver(org.xipki.password.PasswordResolver passwordResolver) |
void |
setPkcs11Conf(Pkcs11conf conf) |
void |
setPkcs11ConfFile(String confFile) |
public void init()
throws org.xipki.util.InvalidConfException
org.xipki.util.InvalidConfExceptionpublic void setP11ModuleFactoryRegister(P11ModuleFactoryRegister p11ModuleFactoryRegister)
public P11CryptService getP11CryptService(String moduleName) throws XiSecurityException, P11TokenException
P11CryptServiceFactoryP11CryptService of the given module moduleName.getP11CryptService in interface P11CryptServiceFactorymoduleName - Module name. Must not be null.P11CryptService of the given module.XiSecurityException - if security error occurs.P11TokenException - if PKCS#11 token error occurs.public void setPkcs11ConfFile(String confFile)
public void setPkcs11Conf(Pkcs11conf conf) throws org.xipki.util.InvalidConfException
org.xipki.util.InvalidConfExceptionpublic void setPasswordResolver(org.xipki.password.PasswordResolver passwordResolver)
public void close()
close in interface Closeableclose in interface AutoCloseablepublic Set<String> getModuleNames()
getModuleNames in interface P11CryptServiceFactoryCopyright © 2019. All rights reserved.