code: public void set(String name, Object obj) throws IOException {
          if (!(obj instanceof AlgorithmId)) {
              throw new IOException("Attribute must be of type AlgorithmId.");
          }
          if (name.equalsIgnoreCase(ALGORITHM)) {
              algId = (AlgorithmId)obj;
          } else {
              throw new IOException("Attribute name not recognized by " +
                                "CertAttrSet:CertificateAlgorithmId.");
          }
      }
docs: Set the attribute value.