code: private void setKey(Object val) throws CertificateException {
          if (!(val instanceof CertificateX509Key)) {
              throw new CertificateException(
                               "Key class type invalid.");
          }
          pubKey = (CertificateX509Key)val;
      }
docs: Set the public key in the certificate.
  
  @params val the Object class value for the PublicKey
  @exception CertificateException on invalid data.