de.flexiprovider.api.parameters
Class AlgorithmParameterGenerator
java.lang.Object
|
+--java.security.AlgorithmParameterGeneratorSpi
|
+--de.flexiprovider.api.parameters.AlgorithmParameterGenerator
- Direct Known Subclasses:
- DSAParameterGenerator, IQDSAParameterGenerator, IQGQParameterGenerator, IQRDSAParameterGenerator, ModeParameterGenerator
- public abstract class AlgorithmParameterGenerator
- extends java.security.AlgorithmParameterGeneratorSpi
|
Method Summary |
protected java.security.AlgorithmParameters |
engineGenerateParameters()
JCA adapter for FlexiAPI method generateParameters(): generate
parameters. |
protected void |
engineInit(java.security.spec.AlgorithmParameterSpec genParamSpec,
java.security.SecureRandom javaRand)
JCA adapter for FlexiAPI methods init(): initialize the parameter
generator with a parameter specification and a source of randomness. |
protected void |
engineInit(int keySize,
java.security.SecureRandom javaRand)
JCA adapter for FlexiAPI methods init(): initialize the parameter
generator with a key size and a source of randomness. |
abstract AlgorithmParameterSpec |
generateParameters()
Generate parameters. |
protected abstract AlgorithmParameters |
getAlgorithmParameters()
|
abstract void |
init(AlgorithmParameterSpec genParamSpec,
SecureRandom random)
Initialize the parameter generator with a parameter specification and a
source of randomness. |
abstract void |
init(int keySize,
SecureRandom random)
Initialize the parameter generator with a key size and a source of
randomness. |
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AlgorithmParameterGenerator
public AlgorithmParameterGenerator()
engineGenerateParameters
protected final java.security.AlgorithmParameters engineGenerateParameters()
- JCA adapter for FlexiAPI method
generateParameters(): generate
parameters.
- Overrides:
engineGenerateParameters in class java.security.AlgorithmParameterGeneratorSpi
- Returns:
- the generated parameters
engineInit
protected final void engineInit(int keySize,
java.security.SecureRandom javaRand)
- JCA adapter for FlexiAPI methods init(): initialize the parameter
generator with a key size and a source of randomness.
- Overrides:
engineInit in class java.security.AlgorithmParameterGeneratorSpi
- Parameters:
keySize - the key sizejavaRand - the source of randomness
engineInit
protected final void engineInit(java.security.spec.AlgorithmParameterSpec genParamSpec,
java.security.SecureRandom javaRand)
throws java.security.InvalidAlgorithmParameterException
- JCA adapter for FlexiAPI methods init(): initialize the parameter
generator with a parameter specification and a source of randomness.
- Overrides:
engineInit in class java.security.AlgorithmParameterGeneratorSpi
- Parameters:
genParamSpec - the parameter specificationjavaRand - the source of randomness- Throws:
java.security.InvalidAlgorithmParameterException - if the given parameters are invalid.
getAlgorithmParameters
protected abstract AlgorithmParameters getAlgorithmParameters()
- Returns:
- an instance of the
AlgorithmParameters class
corresponding to the generated parameters
init
public abstract void init(int keySize,
SecureRandom random)
- Initialize the parameter generator with a key size and a source of
randomness.
- Parameters:
keySize - the key sizerandom - the source of randomness
init
public abstract void init(AlgorithmParameterSpec genParamSpec,
SecureRandom random)
throws InvalidAlgorithmParameterException
- Initialize the parameter generator with a parameter specification and a
source of randomness.
- Parameters:
genParamSpec - the parameter specificationrandom - the source of randomness- Throws:
InvalidAlgorithmParameterException - if the given parameters are invalid.
generateParameters
public abstract AlgorithmParameterSpec generateParameters()
- Generate parameters.
- Returns:
- the generated parameters