code: public void encode(OutputStream out)
      throws CertificateEncodingException {
          if (signedCert == null)
              throw new CertificateEncodingException(
                            "Null certificate to encode");
          try {
              out.write(signedCert.clone());
          } catch (IOException e) {
              throw new CertificateEncodingException(e.toString());
          }
      }
docs: Appends the certificate to an output stream.
  
  @param out an input stream to which the certificate is appended.
  @exception CertificateEncodingException on encoding errors.