Class AS4Signer

java.lang.Object
com.helger.phase4.messaging.crypto.AS4Signer

@Immutable public final class AS4Signer extends Object
Message singing helper.
Author:
Philip Helger
  • Method Details

    • createSignedMessage

      @Nonnull public static Document createSignedMessage(@Nonnull IAS4CryptoFactory aCryptoFactorySign, @Nonnull Document aPreSigningMessage, @Nonnull ESoapVersion eSoapVersion, @Nonnull @Nonempty String sMessagingID, @Nullable com.helger.commons.collection.impl.ICommonsList<WSS4JAttachment> aAttachments, @Nonnull @WillNotClose AS4ResourceHelper aResHelper, boolean bMustUnderstand, @Nonnull AS4SigningParams aSigningParams) throws org.apache.wss4j.common.ext.WSSecurityException
      This method must be used if the message does not contain attachments, that should be in a additional mime message part.
      Parameters:
      aCryptoFactorySign - CryptoFactory to use. May not be null.
      aPreSigningMessage - SOAP Document before signing
      eSoapVersion - SOAP version to use
      sMessagingID - The ID of the "Messaging" element to sign.
      aAttachments - Optional list of attachments
      aResHelper - Resource helper to be used.
      bMustUnderstand - Must understand?
      aSigningParams - Signing parameters. May not be null.
      Returns:
      The created signed SOAP document
      Throws:
      org.apache.wss4j.common.ext.WSSecurityException - If an error occurs during signing