Package org.xipki.security
Class KeypairGeneratorFactoryRegisterImpl
- java.lang.Object
-
- org.xipki.security.KeypairGeneratorFactoryRegisterImpl
-
- All Implemented Interfaces:
KeypairGeneratorFactoryRegister
public class KeypairGeneratorFactoryRegisterImpl extends Object implements KeypairGeneratorFactoryRegister
An implementation ofKeypairGeneratorFactoryRegister.- Since:
- 6.0.0
- Author:
- Lijun Liao (xipki)
-
-
Constructor Summary
Constructors Constructor Description KeypairGeneratorFactoryRegisterImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>getSupportedGeneratorTypes()Retrieves the types of supported keypair generators.KeypairGeneratornewKeypairGenerator(SecurityFactory securityFactory, String type, String conf)Creates a newKeypairGenerator.voidregistFactory(KeypairGeneratorFactory factory)voidunregistFactory(KeypairGeneratorFactory factory)
-
-
-
Method Detail
-
getSupportedGeneratorTypes
public Set<String> getSupportedGeneratorTypes()
Description copied from interface:KeypairGeneratorFactoryRegisterRetrieves the types of supported keypair generators.- Specified by:
getSupportedGeneratorTypesin interfaceKeypairGeneratorFactoryRegister- Returns:
- lower-case types of supported generators, never
null.
-
registFactory
public void registFactory(KeypairGeneratorFactory factory)
-
unregistFactory
public void unregistFactory(KeypairGeneratorFactory factory)
-
newKeypairGenerator
public KeypairGenerator newKeypairGenerator(SecurityFactory securityFactory, String type, String conf) throws org.xipki.util.exception.ObjectCreationException
Description copied from interface:KeypairGeneratorFactoryRegisterCreates a newKeypairGenerator.- Specified by:
newKeypairGeneratorin interfaceKeypairGeneratorFactoryRegister- Parameters:
securityFactory- Security factory. Must not benull.type- Type of the keypair generator. Must not benull.conf- Configuration. Must not benull.- Returns:
- new keypair generator.
- Throws:
org.xipki.util.exception.ObjectCreationException- If generator could not be created.
-
-