Package org.apache.xml.security.keys.content.x509

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


      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

         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

         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

  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

  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

  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

                    try {
                        KeyInfo ki = new KeyInfo(keyInfoElement, null);

                        if (ki.containsX509Data()) {
                            X509Data data = ki.itemX509Data(0);
                            XMLX509Certificate certElem = null;
                            if (data != null && data.containsCertificate()) {
                                certElem = data.itemCertificate(0);
                            }
                            if (certElem != null) {
                                X509Certificate cert = certElem.getX509Certificate();
                                certs = new X509Certificate[1];
                                certs[0] = cert;
                                return new SAML2KeyInfo(assertion, certs);
                            }
                        }
View Full Code Here

                KeyInfo ki = new KeyInfo(e, null);

                if (ki.containsX509Data()) {
                    X509Data data = ki.itemX509Data(0);
                    if (data != null && data.containsCertificate()) {
                        XMLX509Certificate certElem = data.itemCertificate(0);
                        if (certElem != null) {
                            X509Certificate cert = certElem.getX509Certificate();
                            certs = new X509Certificate[1];
                            certs[0] = cert;
                        }
                    } else if (data != null && data.containsIssuerSerial()) {
                        XMLX509IssuerSerial issuerSerial = data.itemIssuerSerial(0);
View Full Code Here

            try {
                KeyInfo ki = new KeyInfo(e, null);

                if (ki.containsX509Data()) {
                    X509Data data = ki.itemX509Data(0);
                    XMLX509Certificate certElem = null;
                    if (data != null && data.containsCertificate()) {
                        certElem = data.itemCertificate(0);
                    }
                    if (certElem != null) {
                        X509Certificate cert = certElem.getX509Certificate();
                        certs = new X509Certificate[1];
                        certs[0] = cert;
                    }
                }
                // TODO: get alias name for cert, check against username set by
View Full Code Here

TOP

Related Classes of org.apache.xml.security.keys.content.x509.XMLX509Certificate

Copyright © 2018 www.massapicom. 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.