MessageContext decodeHttpPostSamlResp()

in src/main/java/org/apache/sling/auth/saml2/impl/AuthenticationHandlerSAML2Impl.java [414:429]


    MessageContext decodeHttpPostSamlResp(final HttpServletRequest request) {
        HTTPPostDecoder httpPostDecoder = new HTTPPostDecoder();
        ParserPool parserPool = XMLObjectProviderRegistrySupport.getParserPool();
        httpPostDecoder.setParserPool(parserPool);
        httpPostDecoder.setHttpServletRequest(request);
        try {
            httpPostDecoder.initialize();
            httpPostDecoder.decode();
            return httpPostDecoder.getMessageContext();
        } catch (MessageDecodingException e) {
            logger.error("MessageDecodingException");
            throw new SAML2RuntimeException(e);
        } catch (ComponentInitializationException e) {
            throw new SAML2RuntimeException(e);
        }
    }