Package nl.clockwork.mule.ebms.model

Examples of nl.clockwork.mule.ebms.model.EbMSDataSource


      message.setContent(XMLStreamReader.class,copy);

      List<EbMSDataSource> dataSources = new ArrayList<EbMSDataSource>();
      if (message.getAttachments() != null)
        for (Attachment attachment : message.getAttachments())
          dataSources.add(new EbMSDataSource(attachment.getDataHandler().getDataSource(),attachment.getId(),attachment.getDataHandler().getName()));

      if (!verify(keyStore,document,dataSources))
        throw new SoapFault("",new QName("InvalidSignature"));
    }
    catch (SoapFault e)
View Full Code Here


        List<EbMSDataSource> dataSources = new ArrayList<EbMSDataSource>();
        if (message.getAttachments() != null)
          for (Attachment attachment : message.getAttachments())
          {
            DataSource ds = attachment.getDataHandler().getDataSource();
            dataSources.add(new EbMSDataSource(ds,attachment.getId(),attachment.getDataHandler().getName()));
          }
 
        sign(keyStore,keyPair,keyAlias,document,dataSources);
 
        OutputStream originalOs = (OutputStream)message.get(OUTPUT_STREAM_HOLDER);
View Full Code Here

          List<EbMSDataSource> dataSources = new ArrayList<EbMSDataSource>();
          if (message.getAttachments() != null)
            for (Attachment attachment : message.getAttachments())
            {
              DataSource ds = attachment.getDataHandler().getDataSource();
              dataSources.add(new EbMSDataSource(ds,attachment.getId(),attachment.getDataHandler().getName()));
            }
   
          sign(keyStore,keyPair,keyAlias,document,dataSources);
        }
 
View Full Code Here

        List<EbMSDataSource> dataSources = new ArrayList<EbMSDataSource>();
        if (message.getAttachments() != null)
          for (Attachment attachment : message.getAttachments())
          {
            DataSource ds = attachment.getDataHandler().getDataSource();
            dataSources.add(new EbMSDataSource(ds,attachment.getId(),attachment.getDataHandler().getName()));
          }
 
        sign(keyStore,keyPair,keyAlias,document,dataSources);
 
        OutputStream originalOs = (OutputStream)message.get(OUTPUT_STREAM_HOLDER);
View Full Code Here

      message.setContent(XMLStreamReader.class,copy);

      List<EbMSDataSource> dataSources = new ArrayList<EbMSDataSource>();
      if (message.getAttachments() != null)
        for (Attachment attachment : message.getAttachments())
          dataSources.add(new EbMSDataSource(attachment.getDataHandler().getDataSource(),attachment.getId(),attachment.getDataHandler().getName()));

      NodeList signatureNodeList = document.getElementsByTagNameNS(org.apache.xml.security.utils.Constants.SignatureSpecNS,org.apache.xml.security.utils.Constants._TAG_SIGNATURE);
      if (signatureNodeList.getLength() > 0)
      {
        boolean isValid = false;
View Full Code Here

  public void message(MessageHeader messageHeader, SyncReply syncReply, MessageOrder messageOrder, AckRequested ackRequested, Manifest manifest)
  {
    Collection<Attachment> attachments = AttachmentManager.get();
    List<DataSource> dataSources = new ArrayList<DataSource>();
    for (Attachment attachment : attachments)
      dataSources.add(new EbMSDataSource(attachment.getDataHandler().getDataSource(),attachment.getId(),attachment.getDataHandler().getName()));
    messageProcessor.process(new EbMSMessage(MessageManager.get(),SignatureManager.get() == null ? null : SignatureManager.get().getSignature(),messageHeader,syncReply,messageOrder,ackRequested,manifest,dataSources),SignatureManager.get());
  }
View Full Code Here

      message.setContent(XMLStreamReader.class, copy);

      List<EbMSDataSource> dataSources = new ArrayList<EbMSDataSource>();
      if (message.getAttachments() != null)
        for (Attachment attachment : message.getAttachments())
          dataSources.add(new EbMSDataSource(attachment.getDataHandler().getDataSource(),attachment.getId(),attachment.getDataHandler().getName()));

      if (!verify(document,dataSources))
        throw new SoapFault("",new QName("InvalidSignature"));
    }
    catch (SoapFault e)
View Full Code Here

TOP

Related Classes of nl.clockwork.mule.ebms.model.EbMSDataSource

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.