Return a PKCS8 representation of the key. The sequence returned
represents a full PrivateKeyInfo object.
return
a PKCS8 representation of the key.
PrivateKeyInfo info = new PrivateKeyInfo(new AlgorithmIdentifier(PKCSObjectIdentifiers.dhKeyAgreement, new DHParameter(dhSpec.getP(), dhSpec.getG(), dhSpec.getL()).getDERObject()), new DERInteger(getX()));
return info.getDEREncoded();