Java in a Nutshell Online Quick Reference for Java 1.1
Availability: JDK 1.1
public abstract class Signature extends Object { // Protected Constructor protected Signature(String algorithm); // Constants protected static final int SIGN; protected static final int UNINITIALIZED; protected static final int VERIFY; // Protected Instance Variables protected int state; // Class Methods public static Signature getInstance(String algorithm) throws NoSuchAlgorithmException; public static Signature getInstance(String algorithm, String provider) throws NoSuchAlgorithmException, NoSuchProviderException; // Public Instance Methods public Object clone() throws CloneNotSupportedException; // Overrides Object.clone() public final String getAlgorithm(); public final Object getParameter(String param) throws InvalidParameterException; public final void initSign(PrivateKey privateKey) throws InvalidKeyException; public final void initVerify(PublicKey publicKey) throws InvalidKeyException; public final void setParameter(String param, Object value) throws InvalidParameterException; public final byte[] sign() throws SignatureException; public String toString(); // Overrides Object.toString() public final void update(byte b) throws SignatureException; public final void update(byte[] data) throws SignatureException; public final void update(byte[] data, int off, int len) throws SignatureException; public final boolean verify(byte[] signature) throws SignatureException; // Protected Instance Methods protected abstract Object engineGetParameter(String param) throws InvalidParameterException; protected abstract void engineInitSign(PrivateKey privateKey) throws InvalidKeyException; protected abstract void engineInitVerify(PublicKey publicKey) throws InvalidKeyException; protected abstract void engineSetParameter(String param, Object value) throws InvalidParameterException; protected abstract byte[] engineSign() throws SignatureException; protected abstract void engineUpdate(byte b) throws SignatureException; protected abstract void engineUpdate(byte[] b, int off, int len) throws SignatureException; protected abstract boolean engineVerify(byte[] sigBytes) throws SignatureException; }