public final class AS4Signer extends Object
| Modifier and Type | Method and Description |
|---|---|
static Document |
createSignedMessage(IAS4CryptoFactory aCryptoFactory,
Document aPreSigningMessage,
ESoapVersion eSoapVersion,
String sMessagingID,
com.helger.commons.collection.impl.ICommonsList<WSS4JAttachment> aAttachments,
AS4ResourceHelper aResHelper,
boolean bMustUnderstand,
AS4SigningParams aSigningParams)
This method must be used if the message does not contain attachments, that
should be in a additional mime message part.
|
@Nonnull public static Document createSignedMessage(@Nonnull IAS4CryptoFactory aCryptoFactory, @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
aCryptoFactory - CryptoFactory to use. May not be null.aPreSigningMessage - SOAP Document before signingeSoapVersion - SOAP version to usesMessagingID - The ID of the "Messaging" element to sign.aAttachments - Optional list of attachmentsaResHelper - Resource helper to be used.bMustUnderstand - Must understand?aSigningParams - Signing parameters. May not be null.org.apache.wss4j.common.ext.WSSecurityException - If an error occurs during signingCopyright © 2015–2020 Philip Helger. All rights reserved.