gnu.crypto.jce.sig
class SignatureAdapter extends SignatureSpi implements Cloneable
This class defines the Service Provider Interface (SPI) for the java.security.Signature class, which provides the functionality of a digital signature algorithm. Digital signatures are used for authentication and integrity assurance of digital data.
All the abstract methods in the java.security.SignatureSpi class are implemented by this class and all its sub-classes.
All the implementations which subclass this object, and which are serviced by the GNU Crypto provider implement the java.lang.Cloneable interface.
Version: $Revision: 1.2 $
Constructor Summary | |
---|---|
protected | SignatureAdapter(String sigName, ISignatureCodec codec)
Trivial protected constructor.
|
Method Summary | |
---|---|
Object | clone() |
Object | engineGetParameter(String param) |
void | engineInitSign(PrivateKey privateKey) |
void | engineInitSign(PrivateKey privateKey, SecureRandom random) |
void | engineInitVerify(PublicKey publicKey) |
void | engineSetParameter(String param, Object value) |
void | engineSetParameter(AlgorithmParameterSpec params) |
byte[] | engineSign() |
int | engineSign(byte[] outbuf, int offset, int len) |
void | engineUpdate(byte b) |
void | engineUpdate(byte[] b, int off, int len) |
boolean | engineVerify(byte[] sigBytes) |
Parameters: sigName the canonical name of the signature scheme. codec the signature codec engine to use with this scheme.