public interface KeyGeneratorFactory
Modifier and Type | Method and Description |
---|---|
KeyGenerator |
createKeyGenerator()
Create a default key generator instance with the algorithm the factory is
responsible for.
|
KeyGenerator |
createKeyGenerator(KeyGeneratorDef definition)
Create a key generator instance from the given definition with the algorithm the
factory is responsible for.
|
String |
getAlgorithmName()
Get name of key generator algorithm.
|
boolean |
hasMandatoryParameters()
Does the algorithm has mandatory parameters and therefore requires a key generator
definition in mapping file?
|
String getAlgorithmName()
boolean hasMandatoryParameters()
true
if algorithm has mandatory parameters and therefore
requires a key generator definition in mapping file. false
if algorithm does not require parameters or has only optional parameters.KeyGenerator createKeyGenerator() throws GeneratorException
GeneratorException
- If creation of default key generator is not possible
due to required mandatory parameters.KeyGenerator createKeyGenerator(KeyGeneratorDef definition) throws GeneratorException
definition
- The definition to initialize the key generator.GeneratorException
- If failed to create a key generator instance.Copyright © 2016. All rights reserved.