This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


javax.crypto
class KeyGeneratorSpi

java.lang.Object extended by javax.crypto.KeyGeneratorSpi

public abstract class KeyGeneratorSpi
extends Object

This class defines the Service Provider Interface (SPI) for the 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.


Constructor Summary

          
 
Method Summary
protected abstract SecretKey

          Generates a secret key.
protected abstract void

          Initializes the key generator with the specified parameter set and a user-provided source of randomness.
protected abstract void
engineInit(int keysize, SecureRandom random)

          Initializes this key generator for a certain keysize, using the given source of randomness.
protected abstract void

          Initializes the key generator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyGeneratorSpi

public KeyGeneratorSpi()
Method Detail

engineGenerateKey

protected abstract SecretKey engineGenerateKey()
Generates a secret key.

Returns:
the new key

engineInit

protected abstract void engineInit(AlgorithmParameterSpec params,
                                   SecureRandom random)
                            throws InvalidAlgorithmParameterException
Initializes the key generator with the specified parameter set and a user-provided source of randomness.

Parameters:
params - the key generation parameters
random - the source of randomness for this key generator
Throws:
InvalidAlgorithmParameterException - if params is inappropriate for this key generator

engineInit

protected abstract void engineInit(int keysize,
                                   SecureRandom random)
Initializes this key generator for a certain keysize, using the given source of randomness.

Parameters:
keysize - the keysize. This is an algorithm-specific metric, specified in number of bits.
random - the source of randomness for this key generator

engineInit

protected abstract void engineInit(SecureRandom random)
Initializes the key generator.

Parameters:
random - the source of randomness for this generator


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.