Name

Class javax.crypto.KeyGeneratorSpi

Synopsis

This is the service provider interface for the KeyGenerator class. To create an implementation of a key generation algorithm, make a subclass of this class and register the implementation with an appropriate security provider. Because it is a JCE engine, it must be deployed in a specially signed jar file.

Class Definition

public abstract class javax.crypto.KeyGeneratorSpi
	extends java.lang.Object {

	// Constructors
	public KeyGeneratorSpi(  );

	// Protected Instance Methods
	protected abstract SecretKey engineGenerateKey(  );
	protected abstract void engineInit(int, SecureRandom);
	protected abstract void engineInit(SecureRandom);
	protected abstract void engineInit(AlgorithmParameterSpec,
				      SecureRandom);
}

See also

AlgorithmParameterSpec, KeyGenerator, SecretKey, SecureRandom

Get Java Security, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.