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

Examples of org.apache.xml.security.keys.content.RetrievalMethod


       return null;
     }

      try {
       //Create a retrieval method over the given element
       RetrievalMethod rm = new RetrievalMethod(element, BaseURI);
         String type = rm.getType();      
       XMLSignatureInput resource=resolveInput(rm,BaseURI);     
           if (RetrievalMethod.TYPE_RAWX509.equals(type)) {
                //a raw certificate, direct parsing is done!
              X509Certificate cert=getRawCertificate(resource);
        if (cert != null) {
View Full Code Here


               Constants._TAG_RETRIEVALMETHOD)) {     
       return null;
     }

     try {
         RetrievalMethod rm = new RetrievalMethod(element, BaseURI);
     String type = rm.getType();      
     XMLSignatureInput resource=resolveInput(rm,BaseURI);              
     if (RetrievalMethod.TYPE_RAWX509.equals(type)) {
          X509Certificate cert=getRawCertificate(resource);
            return cert;
     }
View Full Code Here

    * @param transforms
    * @param Type 
    */
   public void addRetrievalMethod(String URI, Transforms transforms,
                                  String Type) {
      this.add(new RetrievalMethod(this._doc, URI, transforms, Type));
   }
View Full Code Here

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

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

    * @param transforms
    * @param Type 
    */
   public void addRetrievalMethod(String URI, Transforms transforms,
                                  String Type) {
      this.add(new RetrievalMethod(this._doc, URI, transforms, Type));
   }
View Full Code Here

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

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

         xpathC.setXPathNamespaceContext("ds", Constants.SignatureSpecNS);
         xpathC.setXPath("ancestor-or-self::ds:X509Data");
         retrievalTransforms.addTransform(Transforms.TRANSFORM_XPATH,
                                          xpathC.getElement());
         sig.getKeyInfo().add(
            new RetrievalMethod(
               doc, "#object-4", retrievalTransforms,
               "http://www.w3.org/2000/09/xmldsig#X509Data"));

         /*
         X509Data x509data = new X509Data(doc);
View Full Code Here

         xpathC.setXPathNamespaceContext("ds", Constants.SignatureSpecNS);
         xpathC.setXPath("ancestor-or-self::ds:X509Data");
         retrievalTransforms.addTransform(Transforms.TRANSFORM_XPATH,
                                          xpathC.getElement());
         sig.getKeyInfo().add(
            new RetrievalMethod(
               doc, "#object-4", retrievalTransforms,
               "http://www.w3.org/2000/09/xmldsig#X509Data"));

         /*
         X509Data x509data = new X509Data(doc);
View Full Code Here

     * @param retrievalmethod
     */
    public void addRetrievalMethod(SOAPElement retrievalmethod)
        throws XWSSecurityException {
        try {
            RetrievalMethod rm = new RetrievalMethod(retrievalmethod, null);
            delegateKeyInfo.add(rm);
            dirty = true;
        } catch(XMLSecurityException e) {
            throw new XWSSecurityException(e);
        }
View Full Code Here

     * @param uri
     * @param transforms
     * @param Type 
     */
    public void addRetrievalMethod(String uri, Transforms transforms, String Type) {
        this.add(new RetrievalMethod(this.doc, uri, transforms, Type));
    }
View Full Code Here

TOP

Related Classes of org.apache.xml.security.keys.content.RetrievalMethod

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.