fi.hut.tcm.tessa.ECImplementation
Class ECDSAKeyPairGenerator
java.lang.Object
|
+--java.security.KeyPairGeneratorSpi
|
+--fi.hut.tcm.tessa.ECImplementation.ECDSAKeyPairGenerator
- public class ECDSAKeyPairGenerator
- extends KeyPairGeneratorSpi
ECDSAKeyPairGenerator
Creates ECDSA key pairs.
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
ECDSAKeyPairGenerator
public ECDSAKeyPairGenerator()
- The default constructor.
initialize
public void initialize(int strength,
SecureRandom random)
- Parameters:
strength
- the strength of the key. This is an
algorithm-specific metric, such as modulus length, specified in
number of bits.random
- the source of randomness for this generator.- Overrides:
- initialize in class KeyPairGeneratorSpi
initialize
public void initialize(AlgorithmParameterSpec params,
SecureRandom random)
throws InvalidAlgorithmParameterException
- Parameters:
params
- the parameter set used to generate the keys.random
- the source of randomness for this generator.- Throws:
- InvalidAlgorithmParameterException - if the given parameters
are inappropriate for this key pair generator.
- Overrides:
- initialize in class KeyPairGeneratorSpi
- Since:
- JDK1.2
generateKeyPair
public KeyPair generateKeyPair()
- Overrides:
- generateKeyPair in class KeyPairGeneratorSpi