code: public Object getAttributeValue(String name) throws IOException {
          ObjectIdentifier oid = PKCS9Attribute.getOID(name);
  
          if (oid == null)
              throw new IOException("Attribute name " + name +
                                    " not recognized or not supported.");
  
          return getAttributeValue(oid);
      }
docs: Get an attribute value by type name.