code: public static void addAttribute(String name, String oid, Class<?> clazz)
              throws CertificateException {
          ObjectIdentifier objId;
          try {
              objId = new ObjectIdentifier(oid);
          } catch (IOException ioe) {
              throw new CertificateException
                                  ("Invalid Object identifier: " + oid);
          }
          OIDInfo info = new OIDInfo(name, objId, clazz);
          if (oidMap.put(objId, info) != null) {
              throw new CertificateException
                                  ("Object identifier already exists: " + oid);
          }
          if (nameMap.put(name, info) != null) {
              throw new CertificateException("Name already exists: " + name);
          }
      }
docs: Add a name to lookup table.
  
  @param name the name of the attr
  @param oid the string representation of the object identifier for
  the class.
  @param clazz the Class object associated with this attribute
  @exception CertificateException on errors.