/** * Parse the attributes that are common to all SAML Request Types * * @param startElement * @param request * @throws ParsingException */ protected void parseBaseAttributes(StartElement startElement, RequestAbstractType request) throws ParsingException { Attribute destinationAttr = startElement.getAttributeByName(new QName(JBossSAMLConstants.DESTINATION.get())); if (destinationAttr != null) request.setDestination(URI.create(StaxParserUtil.getAttributeValue(destinationAttr))); Attribute consent = startElement.getAttributeByName(new QName(JBossSAMLConstants.CONSENT.get())); if (consent != null) request.setConsent(StaxParserUtil.getAttributeValue(consent)); }