public final class HelixKeyGenerator extends KeyGeneratorSpi
| Constructor and Description |
|---|
HelixKeyGenerator()
Creates a new HelixKeyGenerator using the default key size and
the platform default
SecureRandom implementation. |
| Modifier and Type | Method and Description |
|---|---|
protected SecretKey |
engineGenerateKey()
Generates a secret key.
|
protected void |
engineInit(AlgorithmParameterSpec params,
SecureRandom random)
Initializes the key generator with the specified parameter set and a
user-provided source of randomness.
|
protected void |
engineInit(int keySize,
SecureRandom random)
Initializes this key generator for a certain keysize, using the given
source of randomness.
|
protected void |
engineInit(SecureRandom random)
Initializes the key generator.
|
public HelixKeyGenerator()
SecureRandom implementation.
This constructor also performs the provider self-integrity check.
protected void engineInit(SecureRandom random)
engineInit in class KeyGeneratorSpirandom - the source of randomness for this generatorKeyGeneratorSpi.engineInit(java.security.SecureRandom)protected void engineInit(int keySize,
SecureRandom random)
engineInit in class KeyGeneratorSpikeySize - the size of the keys that this generator should generate,
specified in number of bits (must be a multiple of eight)random - the source of randomness for this generatorKeyGeneratorSpi.engineInit(int,
java.security.SecureRandom)protected void engineInit(AlgorithmParameterSpec params, SecureRandom random) throws InvalidAlgorithmParameterException
The Helix key generator does not accept parameters; this method will throw an exception.
engineInit in class KeyGeneratorSpiparams - the key generation parametersrandom - the source of randomness for this generatorInvalidAlgorithmParameterException - if params is inappropriate for this key generatorKeyGeneratorSpi.engineInit(java.security.spec.AlgorithmParameterSpec,
java.security.SecureRandom)protected SecretKey engineGenerateKey()
engineGenerateKey in class KeyGeneratorSpiKeyGeneratorSpi.engineGenerateKey()Copyright © 2010-2015 Matthew Zipay. All Rights Reserved.