code: private void setAlgorithmId(Object val) throws CertificateException {
          if (!(val instanceof CertificateAlgorithmId)) {
              throw new CertificateException(
                               "AlgorithmId class type invalid.");
          }
          algId = (CertificateAlgorithmId)val;
      }
docs: Set the algorithm id of the certificate.
  
  @params val the Object class value for the AlgorithmId
  @exception CertificateException on invalid data.