Package com.helger.phase4.incoming.soap
Class SoapHeaderElementProcessorWSS4J
java.lang.Object
com.helger.phase4.incoming.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(@NonNull IAS4CryptoFactory aCryptoFactorySign, @NonNull IAS4CryptoFactory aCryptoFactoryCrypt, @Nullable Provider aSecurityProviderSignVerify, @NonNull Supplier<? extends IPMode> aFallbackPModeProvider, @Nullable IAS4DecryptParameterModifier aDecryptParameterModifier, @Nullable AS4SigningParams aSigningParams) -
Method Summary
Modifier and TypeMethodDescription@NonNull com.helger.base.state.ESuccessprocessHeaderElement(@NonNull Document aSoapDoc, @NonNull Element aSecurityNode, @NonNull com.helger.collection.commons.ICommonsList<WSS4JAttachment> aAttachments, @NonNull AS4IncomingMessageState aIncomingState, @NonNull AS4ErrorList 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, @Nullable AS4SigningParams aSigningParams)
-
-
Method Details
-
processHeaderElement
public @NonNull com.helger.base.state.ESuccess processHeaderElement(@NonNull Document aSoapDoc, @NonNull Element aSecurityNode, @NonNull com.helger.collection.commons.ICommonsList<WSS4JAttachment> aAttachments, @NonNull AS4IncomingMessageState aIncomingState, @NonNull AS4ErrorList 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.aIncomingState- 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".
-