Package org.xipki.security
Interface KeypairGeneratorFactory
-
- All Known Implementing Classes:
DfltKeypairGeneratorFactory
public interface KeypairGeneratorFactoryFactory to createKeypairGenerator.- Since:
- 6.0.0
- Author:
- Lijun Liao (xipki)
-
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
getSupportedKeypairTypes
Set<String> getSupportedKeypairTypes()
Retrieves the types of supported signers.- Returns:
- lower-case types of supported signers, never
null.
-
canCreateKeypairGenerator
boolean canCreateKeypairGenerator(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.
-
newKeypairGenerator
KeypairGenerator newKeypairGenerator(String type, String conf, SecurityFactory securityFactory) throws org.xipki.util.exception.ObjectCreationException
Creates a new keypair generator.- 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.
-
-