May 1998
Intermediate to advanced
469 pages
14h 57m
English
Class java.security.SignatureSpi
This is the Security Provider Interface for the signature engine. If
you want to implement your own signature engine, you must extend this
class and register your implementation with an appropriate security
provider. Since the Signature class already
extends this class, your implementation may extend the
Signature class directly. Implementations of
this class must be prepared both to sign and to verify data that is
passed to the engineUpdate() method.
Initialization of the engine may optionally support a set of
algorithm-specific parameters.
public abstract class java.security.SignatureSpi
extends java.lang.Object {
// Variables
protected SecureRandom appRandom;
// Constructors
public SignatureSpi();
// Instance Methods
public Object clone();
// Protected Instance Methods
protected abstract Object engineGetParameter(String);
protected abstract void engineInitSign(PrivateKey);
protected void engineInitSign(PrivateKey, SecureRandom);
protected abstract void engineInitVerify(PublicKey);
protected abstract void engineSetParameter(String, Object);
protected void engineSetParameter(AlgorithmParameterSpec);
protected abstract byte[] engineSign();
protected final int engineSign(byte[], int, int);
protected abstract void engineUpdate(byte);
protected abstract void engineUpdate(byte[], int, int);
protected abstract boolean engineVerify(byte[]);
}
Provider, Signature