code: public void set(String name, Object obj) throws IOException {
          if (name.equalsIgnoreCase(KEY)) {
              this.key = (PublicKey)obj;
          } else {
              throw new IOException("Attribute name not recognized by " +
                                    "CertAttrSet: CertificateX509Key.");
          }
      }
docs: Set the attribute value.