Package nl.clockwork.mule.ebms.model.cpp.cpa

Examples of nl.clockwork.mule.ebms.model.cpp.cpa.DocExchange


    return (DocExchange)deliveryChannel.getDocExchangeId();
  }
 
  public static Certificate getCertificate(DeliveryChannel deliveryChannel)
  {
    DocExchange docExchange = getDocExchange(deliveryChannel);
    if (docExchange != null && docExchange.getEbXMLSenderBinding() != null && docExchange.getEbXMLSenderBinding().getSenderNonRepudiation() != null && docExchange.getEbXMLSenderBinding().getSenderNonRepudiation().getSigningCertificateRef() != null)
      return (Certificate)docExchange.getEbXMLSenderBinding().getSenderNonRepudiation().getSigningCertificateRef().getCertId();
    return null;
  }
View Full Code Here


    return null;
  }
 
  public static boolean isSigned(DeliveryChannel deliveryChannel)
  {
    DocExchange docExchange = getDocExchange(deliveryChannel);
    if (docExchange != null && docExchange.getEbXMLReceiverBinding() != null && docExchange.getEbXMLReceiverBinding().getReceiverNonRepudiation() != null && docExchange.getEbXMLReceiverBinding().getReceiverNonRepudiation().getSignatureAlgorithm() != null)
      for (SignatureAlgorithm algorithm : docExchange.getEbXMLReceiverBinding().getReceiverNonRepudiation().getSignatureAlgorithm())
        if (XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA1.equals(algorithm.getValue()))
          return true;
    return false;
  }
View Full Code Here

TOP

Related Classes of nl.clockwork.mule.ebms.model.cpp.cpa.DocExchange

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.