Package org.xipki.security.pkcs12
Class P12SignerFactory
- java.lang.Object
-
- org.xipki.security.pkcs12.P12SignerFactory
-
- All Implemented Interfaces:
SignerFactory
public class P12SignerFactory extends Object implements SignerFactory
SignerFactoryfor the types pkcs12 and jceks.- Since:
- 2.0.0
- Author:
- Lijun Liao (xipki)
-
-
Constructor Summary
Constructors Constructor Description P12SignerFactory()
-
Method Summary
All Methods Instance Methods Concrete 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.voidsetSecurityFactory(SecurityFactory securityFactory)
-
-
-
Method Detail
-
setSecurityFactory
public void setSecurityFactory(SecurityFactory securityFactory)
-
getSupportedSignerTypes
public Set<String> getSupportedSignerTypes()
Description copied from interface:SignerFactoryRetrieves the types of supported signers.- Specified by:
getSupportedSignerTypesin interfaceSignerFactory- Returns:
- lower-case types of supported signers, never
null.
-
canCreateSigner
public boolean canCreateSigner(String type)
Description copied from interface:SignerFactoryIndicates whether a signer of the giventypecan be created or not.- Specified by:
canCreateSignerin interfaceSignerFactory- Parameters:
type- Type of the signer. Must not benull.- Returns:
- true if signer of the given type can be created, false otherwise.
-
newSigner
public ConcurrentContentSigner newSigner(String type, SignerConf conf, X509Cert[] certificateChain) throws org.xipki.util.exception.ObjectCreationException
Description copied from interface:SignerFactoryCreates a new signer.- Specified by:
newSignerin interfaceSignerFactory- 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.
-
-