/**
  * Write the extension to the DerOutputStream.
  *
  * @param out the DerOutputStream to write the extension to.
  * @exception IOException on encoding errors.
  */
 public void encode(OutputStream out) throws IOException {
   DerOutputStream tmp = new DerOutputStream();
   if (extensionValue == null) {
     extensionId = PKIXExtensions.CertificatePolicies_Id;
     critical = false;
     encodeThis();
   }
   super.encode(tmp);
   out.write(tmp.toByteArray());
 }
 /**
  * Write the extension to the DerOutputStream.
  *
  * @param out the DerOutputStream to write the extension to.
  * @exception IOException on encoding errors.
  */
 public void encode(OutputStream out) throws IOException {
   DerOutputStream tmp = new DerOutputStream();
   if (this.extensionValue == null) {
     this.extensionId = PKIXExtensions.SubjectInfoAccess_Id;
     this.critical = false;
     encodeThis();
   }
   super.encode(tmp);
   out.write(tmp.toByteArray());
 }