Class SamlTokenExtractionHandler

  • All Implemented Interfaces:
    jakarta.xml.ws.handler.Handler<jakarta.xml.ws.handler.soap.SOAPMessageContext>, jakarta.xml.ws.handler.soap.SOAPHandler<jakarta.xml.ws.handler.soap.SOAPMessageContext>

    public class SamlTokenExtractionHandler
    extends SSOHeaderHandler
    Handler class to extract the Saml token from the response stream in the raw form before JAX-WS deserializes it. This is needed because the default deserializer with JAX-WS does not maintain the line separators present inside the token while deserializing and later serializing the SAML token. Thus we have introduced this crude way to extracting the raw token to be used for other operations
    • Constructor Detail

      • SamlTokenExtractionHandler

        public SamlTokenExtractionHandler()
    • Method Detail

      • handleMessage

        public boolean handleMessage​(jakarta.xml.ws.handler.soap.SOAPMessageContext smc)
      • getToken

        public org.w3c.dom.Element getToken()