public class P11SignerFactory extends Object implements SignerFactory
SignerFactory for PKCS#11 token.| Constructor and Description |
|---|
P11SignerFactory() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canCreateSigner(String type)
Indicates whether a signer of the given
type can be created or not. |
Set<String> |
getSupportedSignerTypes()
Retrieves the types of supported signers.
|
ConcurrentContentSigner |
newSigner(String type,
SignerConf conf,
X509Cert[] certificateChain)
Creates a new signer.
|
void |
refreshToken(String type) |
void |
setP11CryptServiceFactory(P11CryptServiceFactory p11CryptServiceFactory) |
void |
setSecurityFactory(SecurityFactory securityFactory) |
public void setP11CryptServiceFactory(P11CryptServiceFactory p11CryptServiceFactory)
public void setSecurityFactory(SecurityFactory securityFactory)
public Set<String> getSupportedSignerTypes()
SignerFactorygetSupportedSignerTypes in interface SignerFactorynull.public boolean canCreateSigner(String type)
SignerFactorytype can be created or not.canCreateSigner in interface SignerFactorytype - Type of the signer. Must no be null.public ConcurrentContentSigner newSigner(String type, SignerConf conf, X509Cert[] certificateChain) throws org.xipki.util.ObjectCreationException
SignerFactorynewSigner in interface SignerFactorytype - Type of the signer. Must not be null.conf - Configuration of the signer. Must not be null.certificateChain - Certificate chain of the signer. Could be null.org.xipki.util.ObjectCreationException - if signer could not be created.public void refreshToken(String type) throws XiSecurityException
refreshToken in interface SignerFactoryXiSecurityExceptionCopyright © 2020. All rights reserved.