Interface to be implemented by all key generator factories.
author: Le Duc Bao author: Ralf Joachim version: $Revision: 5951 $ $Date: 2006-04-25 16:09:10 -0600 (Tue, 25 Apr 2006) $ since: 1.1
createKeyGenerator(KeyGeneratorDef definition) Create a key generator instance from the given definition with the algorithm the
factory is responsible for.
Parameters: definition - The definition to initialize the key generator.
hasMandatoryParameters() Does the algorithm has mandatory parameters and therefore requires a key generator
definition in mapping file?
true if algorithm has mandatory parameters and thereforerequires a key generator definition in mapping file.
Create a default key generator instance with the algorithm the factory is
responsible for. This is only possible for those algorithms that do not require
mandatory parameters.
A default key generator instance with the algorithm the factory isresponsible for. throws: GeneratorException - If creation of default key generator is not possibledue to required mandatory parameters.
Create a key generator instance from the given definition with the algorithm the
factory is responsible for.
Parameters: definition - The definition to initialize the key generator. A key generator instance initialized with given definition with thealgorithm the factory is responsible for. throws: GeneratorException - If failed to create a key generator instance.
Does the algorithm has mandatory parameters and therefore requires a key generator
definition in mapping file?
true if algorithm has mandatory parameters and thereforerequires a key generator definition in mapping file. falseif algorithm does not require parameters or has only optional parameters.