Package com.helger.phase4.servlet.soap
Class SOAPHeaderElementProcessorWSS4J
java.lang.Object
com.helger.phase4.servlet.soap.SOAPHeaderElementProcessorWSS4J
- All Implemented Interfaces:
ISOAPHeaderElementProcessor
This class manages the WSS4J SOAP header
- Author:
- Philip Helger, bayerlma
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final QNameThe QName for which this processor should be invoked -
Constructor Summary
ConstructorsConstructorDescriptionSOAPHeaderElementProcessorWSS4J(IAS4CryptoFactory aCryptoFactorySign, IAS4CryptoFactory aCryptoFactoryCrypt, Provider aSecurityProviderSignVerify, Supplier<? extends IPMode> aFallbackPModeProvider, IAS4DecryptParameterModifier aDecryptParameterModifier) -
Method Summary
Modifier and TypeMethodDescriptioncom.helger.commons.state.ESuccessprocessHeaderElement(Document aSOAPDoc, Element aSecurityNode, com.helger.commons.collection.impl.ICommonsList<WSS4JAttachment> aAttachments, AS4MessageState aState, com.helger.commons.collection.impl.ICommonsList<Ebms3Error> aProcessingErrorMessagesTarget) Process the passed header element.
-
Field Details
-
QNAME_SECURITY
The QName for which this processor should be invoked
-
-
Constructor Details
-
SOAPHeaderElementProcessorWSS4J
public SOAPHeaderElementProcessorWSS4J(@Nonnull IAS4CryptoFactory aCryptoFactorySign, @Nonnull IAS4CryptoFactory aCryptoFactoryCrypt, @Nullable Provider aSecurityProviderSignVerify, @Nonnull Supplier<? extends IPMode> aFallbackPModeProvider, @Nullable IAS4DecryptParameterModifier aDecryptParameterModifier)
-
-
Method Details
-
processHeaderElement
@Nonnull public com.helger.commons.state.ESuccess processHeaderElement(@Nonnull Document aSOAPDoc, @Nonnull Element aSecurityNode, @Nonnull com.helger.commons.collection.impl.ICommonsList<WSS4JAttachment> aAttachments, @Nonnull AS4MessageState aState, @Nonnull com.helger.commons.collection.impl.ICommonsList<Ebms3Error> aProcessingErrorMessagesTarget) Description copied from interface:ISOAPHeaderElementProcessorProcess the passed header element.- Specified by:
processHeaderElementin interfaceISOAPHeaderElementProcessor- Parameters:
aSOAPDoc- The complete SOAP document (logically no MIME parts are contained). Nevernull.aSecurityNode- The DOM node with the header element. Nevernull.aAttachments- Existing extracted attachments. Nevernullbut maybe empty.aState- The current processing state (mutable implementation version needed). Nevernull.aProcessingErrorMessagesTarget- The error list to be filled in case there are processing errors. Nevernull. The list is always empty initially.- Returns:
- Never
null. IfESuccess.FAILUREthan the header is treated as "not handled".
-