FileDocCategorySizeDatePackage
MySignature1.javaAPI DocAndroid 1.5 API3673Wed May 06 22:41:06 BST 2009org.apache.harmony.security.tests.support

MySignature1

public class MySignature1 extends Signature
Tests implementation of Signature

Fields Summary
public boolean
runEngineInitVerify
public boolean
runEngineInitSign
public boolean
runEngineUpdate1
public boolean
runEngineUpdate2
public boolean
runEngineSign
public boolean
runEngineVerify
public boolean
runEngineSetParameter
public boolean
runEngineGetParameter
public static int
SIGN
public static int
VERIFY
public static int
UNINITIALIZED
private final int
BUFFER_LENGTH
Constructors Summary
public MySignature1()

 
          
      
        super(null);
    
public MySignature1(String algorithm)

param
algorithm

        super(algorithm);
    
Methods Summary
protected java.lang.ObjectengineGetParameter(java.lang.String param)

        runEngineGetParameter = true;
        return null;
    
protected voidengineInitSign(java.security.PrivateKey privateKey)

        runEngineInitSign = true;
    
protected voidengineInitVerify(java.security.PublicKey publicKey)

        runEngineInitVerify = true;
    
protected voidengineSetParameter(java.lang.String param, java.lang.Object value)

        runEngineSetParameter = true;
    
protected byte[]engineSign()

        runEngineSign = true;
        byte [] out = new byte [BUFFER_LENGTH];
        return out;
    
protected voidengineUpdate(byte b)

        runEngineUpdate1 = true;
    
protected voidengineUpdate(byte[] b, int off, int len)

        if (b == null) throw new NullPointerException();
        if (off < 0 || off > b.length || off > len) {
            throw new IllegalArgumentException("incorrect parameter off");
        }
        if (len < 0 || len > b.length) {
            throw new IllegalArgumentException("incorrect parameter len");
        }
        runEngineUpdate2 = true;
    
protected booleanengineVerify(byte[] sigBytes)

        runEngineVerify = true;
        return false;
    
public intgetBufferLength()

        return BUFFER_LENGTH;
    
public intgetState()

        return state;