Package org.xipki.security
Class DfltKeypairGeneratorFactory
- java.lang.Object
-
- org.xipki.security.DfltKeypairGeneratorFactory
-
- All Implemented Interfaces:
KeypairGeneratorFactory
public class DfltKeypairGeneratorFactory extends Object implements KeypairGeneratorFactory
KeypairGeneratorFactoryfor the type software.- Since:
- 6.0.0
- Author:
- Lijun Liao (xipki)
-
-
Constructor Summary
Constructors Constructor Description DfltKeypairGeneratorFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanCreateKeypairGenerator(String type)Indicates whether a signer of the giventypecan be created or not.Set<String>getSupportedKeypairTypes()Retrieves the types of supported signers.KeypairGeneratornewKeypairGenerator(String type, String conf, SecurityFactory securityFactory)Creates a new keypair generator.voidsetP11CryptServiceFactory(P11CryptServiceFactory p11CryptServiceFactory)voidsetSecurityFactory(SecurityFactory securityFactory)
-
-
-
Method Detail
-
setP11CryptServiceFactory
public void setP11CryptServiceFactory(P11CryptServiceFactory p11CryptServiceFactory)
-
setSecurityFactory
public void setSecurityFactory(SecurityFactory securityFactory)
-
getSupportedKeypairTypes
public Set<String> getSupportedKeypairTypes()
Description copied from interface:KeypairGeneratorFactoryRetrieves the types of supported signers.- Specified by:
getSupportedKeypairTypesin interfaceKeypairGeneratorFactory- Returns:
- lower-case types of supported signers, never
null.
-
canCreateKeypairGenerator
public boolean canCreateKeypairGenerator(String type)
Description copied from interface:KeypairGeneratorFactoryIndicates whether a signer of the giventypecan be created or not.- Specified by:
canCreateKeypairGeneratorin interfaceKeypairGeneratorFactory- Parameters:
type- Type of the signer. Must not benull.- Returns:
- true if signer of the given type can be created, false otherwise.
-
newKeypairGenerator
public KeypairGenerator newKeypairGenerator(String type, String conf, SecurityFactory securityFactory) throws org.xipki.util.exception.ObjectCreationException
Description copied from interface:KeypairGeneratorFactoryCreates a new keypair generator.- Specified by:
newKeypairGeneratorin interfaceKeypairGeneratorFactory- Parameters:
type- Type of the keypair generator. Must not benull.conf- Configuration of the keypair generator. May benull.securityFactory- SecurityFactory.- Returns:
- new keypair generator.
- Throws:
org.xipki.util.exception.ObjectCreationException- if signer could not be created.
-
-