Class WSSecurityMessagingSupport
java.lang.Object
org.opensaml.soap.wssecurity.messaging.WSSecurityMessagingSupport
Helper methods for working with WS-Security messaging.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddSecurityHeaderBlock(MessageContext messageContext, XMLObject securityHeader, boolean mustUnderstand) Add aSecuritysub-header block to the SOAP envelope contained within the specified message context's SOAP subcontext.static voidaddSecurityHeaderBlock(MessageContext messageContext, XMLObject securitySubHeader, boolean mustUnderstand, String targetNode, boolean isFinalDestination) Add aSecuritysub-header block to the SOAP envelope contained within the specified message context's SOAP subcontext.
-
Constructor Details
-
WSSecurityMessagingSupport
private WSSecurityMessagingSupport()Private constructor.
-
-
Method Details
-
addSecurityHeaderBlock
public static void addSecurityHeaderBlock(@Nonnull MessageContext messageContext, @Nonnull XMLObject securityHeader, boolean mustUnderstand) Add aSecuritysub-header block to the SOAP envelope contained within the specified message context's SOAP subcontext.- Parameters:
messageContext- the message context to processsecurityHeader- the security sub-header block to addmustUnderstand- whether the sub-header should be added to a Security header block indicating that it must be understood
-
addSecurityHeaderBlock
public static void addSecurityHeaderBlock(@Nonnull MessageContext messageContext, @Nonnull XMLObject securitySubHeader, boolean mustUnderstand, @Nullable String targetNode, boolean isFinalDestination) Add aSecuritysub-header block to the SOAP envelope contained within the specified message context's SOAP subcontext.- Parameters:
messageContext- the message context to processsecuritySubHeader- the security sub-header block to addmustUnderstand- whether the sub-header should be added to a Security header block indicating that it must be understoodtargetNode- the explicitly-specified SOAP node actor for which the header is desiredisFinalDestination- true specifies that headers targeted for message final destination should be returned, false specifies they should not be returned
-