Package org.apache.xml.security.utils.resolver

Examples of org.apache.xml.security.utils.resolver.ResourceResolver.resolve()


        try {
      String baseURI = context.getBaseURI();
            ResourceResolver apacheResolver =
          ResourceResolver.getInstance(uriAttr, baseURI);
            XMLSignatureInput in = apacheResolver.resolve(uriAttr, baseURI);
      if (in.isOctetStream()) {
          return new ApacheOctetStreamData(in);
      } else {
          return new ApacheNodeSetData(in);
      }
View Full Code Here


               "signature.Verification.Reference.NoInput", exArgs);
         }

         resolver.addProperties(this._manifest._resolverProperties);

         XMLSignatureInput input = resolver.resolve(URIAttr, this._baseURI);
                 

         return input;
      catch (ResourceResolverException ex) {
         throw new ReferenceNotInitializedException("empty", ex);
View Full Code Here

    ResourceResolver.registerAtStart(OldResourceResolverSpi.class.getName());
    ResourceResolver resolver=ResourceResolver.getInstance(uri, "test");
    ResourceResolver resolver1=ResourceResolver.getInstance(uri1, "test1");
    ResourceResolver resolver2=ResourceResolver.getInstance(uri1, "test2");
   
    resolver2.resolve(uri1, "test2");   
    resolver.resolve(uri, "test");
    resolver1.resolve(uri1, "test1");
   
   
  };
View Full Code Here

  uriAttr.setValue("http://www.apache.org");
  ResourceResolver res =
      ResourceResolver.getInstance(uriAttr, "http://www.apache.org");
  try {
      uriAttr.setValue("http://xmldsig.pothole.com/xml-stylesheet.txt");
      res.resolve(uriAttr, null);
  } catch (Exception e) {
      e.printStackTrace();
      fail(uriAttr.getValue()
    + " should be resolvable by the OfflineResolver");
  }
View Full Code Here

      fail(uriAttr.getValue()
    + " should be resolvable by the OfflineResolver");
  }
  try {
      uriAttr.setValue("http://www.apache.org");
      res.resolve(uriAttr, null);
      fail(uriAttr.getValue()
    + " should not be resolvable by the OfflineResolver");
  } catch (Exception e) { }
    }
View Full Code Here

  String basedir = System.getProperty("basedir");
  String file = new File(basedir, "build.xml").toURI().toString();
  uriAttr.setValue(file);
  ResourceResolver res = ResourceResolver.getInstance(uriAttr, file);
  try {
      res.resolve(uriAttr, "");
  } catch (Exception e) {
      fail(e.getMessage());
  }
    }
View Full Code Here

  uriAttr.setValue("http://www.apache.org");
  ResourceResolver res =
      ResourceResolver.getInstance(uriAttr, "http://www.apache.org");
  try {
      uriAttr.setValue("http://xmldsig.pothole.com/xml-stylesheet.txt");
      res.resolve(uriAttr, null);
  } catch (Exception e) {
      e.printStackTrace();
      fail(uriAttr.getValue()
    + " should be resolvable by the OfflineResolver");
  }
View Full Code Here

      fail(uriAttr.getValue()
    + " should be resolvable by the OfflineResolver");
  }
  try {
      uriAttr.setValue("http://www.apache.org");
      res.resolve(uriAttr, null);
      fail(uriAttr.getValue()
    + " should not be resolvable by the OfflineResolver");
  } catch (Exception e) { }
    }
View Full Code Here

    ResourceResolver.registerAtStart(OldResourceResolverSpi.class.getName());
    ResourceResolver resolver=ResourceResolver.getInstance(uri, "test");
    ResourceResolver resolver1=ResourceResolver.getInstance(uri1, "test1");
    ResourceResolver resolver2=ResourceResolver.getInstance(uri1, "test2");
   
    resolver2.resolve(uri1, "test2");   
    resolver.resolve(uri, "test");
    resolver1.resolve(uri1, "test1");
   
   
  };
View Full Code Here

  uriAttr.setValue("http://www.apache.org");
  ResourceResolver res =
      ResourceResolver.getInstance(uriAttr, "http://www.apache.org");
  try {
      uriAttr.setValue("http://xmldsig.pothole.com/xml-stylesheet.txt");
      res.resolve(uriAttr, null);
  } catch (Exception e) {
      e.printStackTrace();
      fail(uriAttr.getValue()
    + " should be resolvable by the OfflineResolver");
  }
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.