Examples of XMLX509Certificate


Examples of org.apache.xml.security.keys.content.x509.XMLX509Certificate

    * @param x509certificate
    * @throws XMLSecurityException
    */
   public void addCertificate(X509Certificate x509certificate)
           throws XMLSecurityException {
      this.add(new XMLX509Certificate(this._doc, x509certificate));
   }
View Full Code Here

Examples of org.apache.xml.security.keys.content.x509.XMLX509Certificate

    * Method addCertificate
    *
    * @param x509certificateBytes
    */
   public void addCertificate(byte[] x509certificateBytes) {
      this.add(new XMLX509Certificate(this._doc, x509certificateBytes));
   }
View Full Code Here

Examples of org.apache.xml.security.keys.content.x509.XMLX509Certificate

      Element e = XMLUtils.selectDsNode(this._constructionElement.getFirstChild(),
                                                Constants._TAG_X509CERTIFICATE,i);

      if (e != null) {
         return new XMLX509Certificate(e, this._baseURI);
      }
       return null;
   }
View Full Code Here

Examples of org.apache.xml.security.keys.content.x509.XMLX509Certificate

      kek = mapKeyName(kekKeyName.getKeyName());
    }
    else {

      X509Data certData = kiek.itemX509Data(0);
      XMLX509Certificate xcert = certData.itemCertificate(0);
      X509Certificate cert = xcert.getX509Certificate();

      if (cert != null) {

        if (cert.getSerialNumber().toString().equals(rsaCertSerialNumber)) {
View Full Code Here

Examples of org.apache.xml.security.keys.content.x509.XMLX509Certificate

      kek = mapKeyName(kekKeyName.getKeyName());
    }
    else {

      X509Data certData = kiek.itemX509Data(0);
      XMLX509Certificate xcert = certData.itemCertificate(0);
      X509Certificate cert = xcert.getX509Certificate();

      if (cert != null) {

        if (cert.getSerialNumber().toString().equals(rsaCertSerialNumber)) {
View Full Code Here

Examples of org.apache.xml.security.keys.content.x509.XMLX509Certificate

         X509Data x509data = new X509Data(doc);

         x509data.add(new XMLX509SubjectName(doc, cert));
         x509data.add(new XMLX509IssuerSerial(doc, cert));
         x509data.add(new XMLX509Certificate(doc, cert));
         object.appendChild(x509data.getElement());
         sig.appendObject(object);
      }

      /*
 
View Full Code Here

Examples of org.apache.xml.security.keys.content.x509.XMLX509Certificate

         X509Data x509data = new X509Data(doc);

         x509data.add(new XMLX509SubjectName(doc, cert));
         x509data.add(new XMLX509IssuerSerial(doc, cert));
         x509data.add(new XMLX509Certificate(doc, cert));
         object.appendChild(x509data.getElement());
         sig.appendObject(object);
      }

      /*
 
View Full Code Here

Examples of org.apache.xml.security.keys.content.x509.XMLX509Certificate

  DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
  dbf.setNamespaceAware(true);
  Document doc = dbf.newDocumentBuilder().parse(fis);
  NodeList nl = doc.getElementsByTagNameNS
    (Constants.SignatureSpecNS, "X509Certificate");
  XMLX509Certificate xmlCert =
      new XMLX509Certificate((Element) nl.item(0), "");
  xmlCert.getX509Certificate();
  // System.out.println(cert);
    }
View Full Code Here

Examples of org.apache.xml.security.keys.content.x509.XMLX509Certificate

  DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
  dbf.setNamespaceAware(true);
  Document doc = dbf.newDocumentBuilder().parse(fis);
  NodeList nl = doc.getElementsByTagNameNS
    (Constants.SignatureSpecNS, "X509Certificate");
  XMLX509Certificate xmlCert =
      new XMLX509Certificate((Element) nl.item(0), "");
  X509Certificate cert = xmlCert.getX509Certificate();
  System.out.println(cert);
    }
View Full Code Here

Examples of org.apache.xml.security.keys.content.x509.XMLX509Certificate

  DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
  dbf.setNamespaceAware(true);
  Document doc = dbf.newDocumentBuilder().parse(fis);
  NodeList nl = doc.getElementsByTagNameNS
    (Constants.SignatureSpecNS, "X509Certificate");
  XMLX509Certificate xmlCert =
      new XMLX509Certificate((Element) nl.item(0), "");
  xmlCert.getX509Certificate();
  // System.out.println(cert);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.