Class java.security.Signature (1.1)
public abstract class Signature extends Object {
// Protected Constructor
protected Signature(String algorithm);
// Constants
protected final static int KEYGEN;
protected final static int SIGN;
protected final static int UNINITIALIZED;
protected final static int VERIFY;
// Protected Instance Variables
protected int state;
// Class Methods
public static Signature getSignature(String algorithm) throws NoSuchAlgorithmException;
public static Signature getSignature(String algorithm, String provider) throws NoSuchAlgorithmException, NoSuchProviderException;
// Public Instance Methods
public Object clone( ) throws CloneNotSupportedException; // Overrides Object.clone( )
public final KeyPair generateKeyPair(byte[ ] seed) throws KeyException;
public final String getAlgorithm( );
public final Object getParameter(String param) throws InvalidParameterException;
public final void initGenerateKeyPair(int strength) throws InvalidParameterException;
public final void initGenerateKeyPair(int strength, byte[ ] seed) throws InvalidParameterException;
public final void initGenerateKeyPair(KeyParams params) 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 final 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 KeyPair engineGenerateKeyPair(byte[ ] seed) throws KeyException;
protected abstract Object engineGetParameter(String param) throws InvalidParameterException;
protected abstract void engineInitGenerateKeyPair(int strength) throws InvalidParameterException;
protected abstract void engineInitGenerateKeyPair(int strength, byte[ ] seed) throws InvalidParameterException;
protected void engineInitGenerateKeyPair(KeyParams params) throws InvalidParameterException, ProviderException;
protected abstract void engineInitSign(byte[ ] privateKey, String format) throws InvalidKeyException;
protected abstract void engineInitVerify(byte[ ] publicKey, String format) throws InvalidKeyException;
protected abstract void engineSetParameter(String param, Object value) throws InvalidParameterException;
protected abstract byte[ ] engineSign( ) throws SignatureException;
protected abstract String engineToString( );
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;
}