Examples of QNameTarget


Examples of org.jboss.ws.extensions.security.QNameTarget

      if (targets == null || targets.size() == 0)
      {
         // By default we encrypt the content of the body element
         String namespace = message.getDocumentElement().getNamespaceURI();
         processTarget(cipher, message, new QNameTarget(new QName(namespace, "Body"), true), list, secretKey);
      }
      else
      {
         for (Target target : targets)
            processTarget(cipher, message, target, list, secretKey);
View Full Code Here

Examples of org.jboss.ws.extensions.security.QNameTarget

      if (targets == null || targets.size() == 0)
      {
         // By default we sign the body element, and a timestamp if it is available
         String namespace = envelope.getNamespaceURI();
         processTarget(sig, message, new QNameTarget(new QName(namespace, "Body")));
         if (header.getTimestamp() != null)
            processTarget(sig, message, new WsuIdTarget("timestamp"));
      }
      else
      {
View Full Code Here

Examples of org.jboss.ws.extensions.security.QNameTarget

      if (targets == null || targets.size() == 0)
      {
         // By default we sign the body element, and a timestamp if it is available
         String namespace = envelope.getNamespaceURI();
         processTarget(sig, message, new QNameTarget(new QName(namespace, "Body")));
         if (header.getTimestamp() != null)
            processTarget(sig, message, new WsuIdTarget("timestamp"));
      }
      else
      {
View Full Code Here

Examples of org.jboss.ws.extensions.security.QNameTarget

      if (targets == null || targets.size() == 0)
      {
         // By default we require just the body element
         String namespace = message.getDocumentElement().getNamespaceURI();
         targets = new ArrayList<Target>(1);
         targets.add(new QNameTarget(new QName(namespace, "Body"), true));
      }

      for (Target target : targets)
      {
          Collection<String> ids = resolveTarget(message, target);
View Full Code Here

Examples of org.jboss.ws.extensions.security.QNameTarget

      if (targets == null || targets.size() == 0)
      {
         // By default we encrypt the content of the body element
         String namespace = message.getDocumentElement().getNamespaceURI();
         processTarget(cipher, message, new QNameTarget(new QName(namespace, "Body"), true), list, secretKey);
      }
      else
      {
         for (Target target : targets)
            processTarget(cipher, message, target, list, secretKey);
View Full Code Here

Examples of org.jboss.ws.extensions.security.QNameTarget

      if (targets == null || targets.size() == 0)
      {
         // By default we encrypt the content of the body element
         String namespace = message.getDocumentElement().getNamespaceURI();
         processTarget(cipher, message, new QNameTarget(new QName(namespace, "Body"), true), list, secretKey);
      }
      else
      {
         for (Target target : targets)
            processTarget(cipher, message, target, list, secretKey);
View Full Code Here

Examples of org.jboss.ws.extensions.security.QNameTarget

      if (targets == null || targets.size() == 0)
      {
         // By default we sign the body element, and a timestamp if it is available
         String namespace = envelope.getNamespaceURI();
         processTarget(sig, message, new QNameTarget(new QName(namespace, "Body")));
         if (header.getTimestamp() != null)
            processTarget(sig, message, new WsuIdTarget("timestamp"));
      }
      else
      {
View Full Code Here

Examples of org.jboss.ws.extensions.security.QNameTarget

      if (targets == null || targets.size() == 0)
      {
         // By default we require just the body element
         String namespace = message.getDocumentElement().getNamespaceURI();
         targets = new ArrayList<Target>(1);
         targets.add(new QNameTarget(new QName(namespace, "Body"), true));
      }

      for (Target target : targets)
      {
          Collection<String> ids = resolveTarget(message, target);
View Full Code Here

Examples of org.jboss.ws.extensions.security.QNameTarget

      if (targets == null || targets.size() == 0)
      {
         // By default we encrypt the content of the body element
         String namespace = message.getDocumentElement().getNamespaceURI();
         processTarget(cipher, message, new QNameTarget(new QName(namespace, "Body"), true), list, secretKey);
      }
      else
      {
         for (Target target : targets)
            processTarget(cipher, message, target, list, secretKey);
View Full Code Here

Examples of org.jboss.ws.extensions.security.QNameTarget

   private LinkedList buildOperations()
   {
      List targets = new ArrayList();
      QName name = new QName("http://org.jboss.ws/2004", "echoString2");
      Target target = new QNameTarget(name);
      targets.add(target);
      name = new QName("http://org.jboss.ws/2004", "someHeader");
      target = new QNameTarget(name);
      targets.add(target);
      targets.add(new WsuIdTarget("timestamp"));

      LinkedList operations = new LinkedList();
      operations.add(new OperationDescription(TimestampOperation.class, null, null, "300", null));
      operations.add(new OperationDescription(SignatureOperation.class, targets, "wsse", null, null));

      name = new QName("http://org.jboss.ws/2004", "someHeader");
      target = new QNameTarget(name);
      targets = new ArrayList();
      targets.add(target);

      name = new QName("http://org.jboss.ws/2004", "echoString2");
      target = new QNameTarget(name, true);
      targets.add(target);

      operations.add(new OperationDescription(EncryptionOperation.class, targets, "wsse", null, null));
      operations.add(new OperationDescription(SendUsernameOperation.class, null, "hi", "there", null));
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.