DSAPrivateKey prKey = new DSAPrivateKey () {
public BigInteger getX() { return x; }
public DSAParams getParams() {
return (DSAParams)(new DSAParameterSpec(p, q, g));
}
public String getAlgorithm() { return "DSA"; }
public byte[] getEncoded() { return enc1; }
public String getFormat() { return "PKCS8"; }
};