return getEncoded(IKeyPairCodec.RAW_FORMAT);
byte[] result; switch (format) { case IKeyPairCodec.RAW_FORMAT: result = new DHKeyPairRawCodec().encodePrivateKey(this); break; case IKeyPairCodec.PKCS8_FORMAT: result = new DHKeyPairPKCS8Codec().encodePrivateKey(this); break; default: throw new IllegalArgumentException("Unsupported encoding format: " + format); } return result;
  public byte[] getEncoded()  {    return getEncoded(IKeyPairCodec.RAW_FORMAT);  }