Class WSSecurityMessagingSupport


  • public final class WSSecurityMessagingSupport
    extends Object
    Helper methods for working with WS-Security messaging.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void addSecurityHeaderBlock​(org.opensaml.messaging.context.MessageContext messageContext, org.opensaml.core.xml.XMLObject securityHeader, boolean mustUnderstand)
      Add a Security sub-header block to the SOAP envelope contained within the specified message context's SOAP subcontext.
      static void addSecurityHeaderBlock​(org.opensaml.messaging.context.MessageContext messageContext, org.opensaml.core.xml.XMLObject securitySubHeader, boolean mustUnderstand, String targetNode, boolean isFinalDestination)
      Add a Security sub-header block to the SOAP envelope contained within the specified message context's SOAP subcontext.
    • Constructor Detail

      • WSSecurityMessagingSupport

        private WSSecurityMessagingSupport()
        Private constructor.
    • Method Detail

      • addSecurityHeaderBlock

        public static void addSecurityHeaderBlock​(@Nonnull
                                                  org.opensaml.messaging.context.MessageContext messageContext,
                                                  @Nonnull
                                                  org.opensaml.core.xml.XMLObject securityHeader,
                                                  boolean mustUnderstand)
        Add a Security sub-header block to the SOAP envelope contained within the specified message context's SOAP subcontext.
        Parameters:
        messageContext - the message context to process
        securityHeader - the security sub-header block to add
        mustUnderstand - whether the sub-header should be added to a Security header block indicating that it must be understood
      • addSecurityHeaderBlock

        public static void addSecurityHeaderBlock​(@Nonnull
                                                  org.opensaml.messaging.context.MessageContext messageContext,
                                                  @Nonnull
                                                  org.opensaml.core.xml.XMLObject securitySubHeader,
                                                  boolean mustUnderstand,
                                                  @Nullable
                                                  String targetNode,
                                                  boolean isFinalDestination)
        Add a Security sub-header block to the SOAP envelope contained within the specified message context's SOAP subcontext.
        Parameters:
        messageContext - the message context to process
        securitySubHeader - the security sub-header block to add
        mustUnderstand - whether the sub-header should be added to a Security header block indicating that it must be understood
        targetNode - the explicitly-specified SOAP node actor for which the header is desired
        isFinalDestination - true specifies that headers targeted for message final destination should be returned, false specifies they should not be returned