FileDocCategorySizeDatePackage
MyKeyAgreementSpi.javaAPI DocAndroid 1.5 API2809Wed May 06 22:41:02 BST 2009org.apache.harmony.crypto.tests.support

MyKeyAgreementSpi

public class MyKeyAgreementSpi extends KeyAgreementSpi
Additional class for verification of KeyAgreementSpi and KeyAgreement functionality

Fields Summary
Constructors Summary
Methods Summary
protected java.security.KeyengineDoPhase(java.security.Key key, boolean lastPhase)

        if (!lastPhase) {
            throw new IllegalStateException("last Phase is false");
        }
        return null;
    
protected byte[]engineGenerateSecret()

        return new byte[0];
    
protected intengineGenerateSecret(byte[] sharedSecret, int offset)

        return -1;
    
protected javax.crypto.SecretKeyengineGenerateSecret(java.lang.String algorithm)

        if (algorithm.length() == 0) {
            throw new NoSuchAlgorithmException("Algorithm is empty");
        }
        return null;
    
protected voidengineInit(java.security.Key key, java.security.SecureRandom random)

        throw new IllegalArgumentException("Invalid parameter");
    
protected voidengineInit(java.security.Key key, java.security.spec.AlgorithmParameterSpec params, java.security.SecureRandom random)

        throw new IllegalArgumentException("Invalid parameter");