Overview | Package | Class | Tree | Deprecated | Index | Help | |||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.crypto.KeyGeneratorSpi
KeyGenerator
class.
All the abstract methods in this class must be implemented by each
cryptographic service provider who wishes to supply the implementation
of a key generator for a particular algorithm.
Method Summary | |
SecretKey | engineGenerateKey()
Generates a secret key. |
void | engineInit(java.security.SecureRandom random)
Initializes the key generator. |
void | engineInit(java.security.spec.AlgorithmParameterSpec params,
java.security.SecureRandom random)
Initializes the key generator with the specified parameter set and a user-provided source of randomness. |
void | engineInit(int strength,
java.security.SecureRandom random)
Initializes this key generator for a certain strength, using the given source of randomness. |
Methods inherited from class java.lang.Object | |
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait |
Method Detail |
protected abstract void engineInit(java.security.SecureRandom random)
random
- the source of randomness for this generatorprotected abstract void engineInit(java.security.spec.AlgorithmParameterSpec params, java.security.SecureRandom random) throws java.security.InvalidAlgorithmParameterException
params
- the key generation parameters
random
- the source of randomness for this key generatorparams
is
inappropriate for this key generatorprotected abstract void engineInit(int strength, java.security.SecureRandom random)
strength
- the strength of the key. This is an algorithm-specific
metric specified in number of bits.
random
- the source of randomness for this key generatorprotected abstract SecretKey engineGenerateKey()
Overview | Package | Class | Tree | Deprecated | Index | Help | |||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |