Name
Class java.security.SignatureSpi
Description
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. Because 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.
Class Definition
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 abstract void engineUpdate(byte); protected abstract void engineUpdate(byte[], int, int); protected abstract boolean engineVerify(byte[]); }
See Also
Provider
, Signature
Get Java Cryptography 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.