public byte[] getEncoded(final int format)
public byte[] getEncoded(int format)
  public byte[] getEncoded(final int format)  {    final byte[] result;    switch (format)      {      case IKeyPairCodec.RAW_FORMAT:        result = new RSAKeyPairRawCodec().encodePrivateKey(this);        break;      default:        throw new IllegalArgumentException("format");      }    return result;  }