{
samlDocument = DocumentUtil.getDocument(is);
}
catch (ParserConfigurationException e)
{
throw new ParsingException(e);
}
catch (SAXException e)
{
throw new ParsingException(e);
}
try
{
Binder<Node> binder = getBinder();
JAXBElement<RequestAbstractType> jaxbAuthnRequestType = (JAXBElement<RequestAbstractType>) binder.unmarshal(samlDocument);
RequestAbstractType requestType = jaxbAuthnRequestType.getValue();
samlDocumentHolder = new SAMLDocumentHolder(requestType, samlDocument);
return requestType;
}
catch (JAXBException e)
{
throw new ParsingException(e);
}
}