Package org.xipki.security
Class SignerFactoryRegisterImpl
- java.lang.Object
-
- org.xipki.security.SignerFactoryRegisterImpl
-
- All Implemented Interfaces:
SignerFactoryRegister
public class SignerFactoryRegisterImpl extends Object implements SignerFactoryRegister
An implementation ofSignerFactoryRegister.- Since:
- 2.0.0
- Author:
- Lijun Liao (xipki)
-
-
Constructor Summary
Constructors Constructor Description SignerFactoryRegisterImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>getSupportedSignerTypes()Retrieves the types of supported signers.ConcurrentContentSignernewSigner(SecurityFactory securityFactory, String type, SignerConf conf, X509Cert[] certificateChain)Creates a newConcurrentContentSigner.voidregistFactory(SignerFactory factory)voidunregistFactory(SignerFactory factory)
-
-
-
Method Detail
-
getSupportedSignerTypes
public Set<String> getSupportedSignerTypes()
Description copied from interface:SignerFactoryRegisterRetrieves the types of supported signers.- Specified by:
getSupportedSignerTypesin interfaceSignerFactoryRegister- Returns:
- lower-case types of supported signers, never
null.
-
registFactory
public void registFactory(SignerFactory factory)
-
unregistFactory
public void unregistFactory(SignerFactory factory)
-
newSigner
public ConcurrentContentSigner newSigner(SecurityFactory securityFactory, String type, SignerConf conf, X509Cert[] certificateChain) throws org.xipki.util.exception.ObjectCreationException
Description copied from interface:SignerFactoryRegisterCreates a newConcurrentContentSigner.- Specified by:
newSignerin interfaceSignerFactoryRegister- Parameters:
securityFactory- Security factory. Must not benull.type- Type of the signer. Must not benull.conf- Configuration. Must not benull.certificateChain- Certificate chain. Could benull-- Returns:
- new signer.
- Throws:
org.xipki.util.exception.ObjectCreationException- If signer could not be created.
-
-