Package org.xipki.security
Interface SignerFactory
-
- All Known Implementing Classes:
P11SignerFactory,P12SignerFactory
public interface SignerFactoryFactory to createConcurrentContentSigner.- Since:
- 2.0.0
- Author:
- Lijun Liao (xipki)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanCreateSigner(String type)Indicates whether a signer of the giventypecan be created or not.Set<String>getSupportedSignerTypes()Retrieves the types of supported signers.ConcurrentContentSignernewSigner(String type, SignerConf conf, X509Cert[] certificateChain)Creates a new signer.
-
-
-
Method Detail
-
getSupportedSignerTypes
Set<String> getSupportedSignerTypes()
Retrieves the types of supported signers.- Returns:
- lower-case types of supported signers, never
null.
-
canCreateSigner
boolean canCreateSigner(String type)
Indicates whether a signer of the giventypecan be created or not.- Parameters:
type- Type of the signer. Must not benull.- Returns:
- true if signer of the given type can be created, false otherwise.
-
newSigner
ConcurrentContentSigner newSigner(String type, SignerConf conf, X509Cert[] certificateChain) throws org.xipki.util.exception.ObjectCreationException
Creates a new signer.- Parameters:
type- Type of the signer. Must not benull.conf- Configuration of the signer. Must not benull.certificateChain- Certificate chain of the signer. Could benull.- Returns:
- new signer.
- Throws:
org.xipki.util.exception.ObjectCreationException- if signer could not be created.
-
-