use of org.keycloak.saml.processing.core.parsers.util.HasQName in project keycloak by keycloak.
the class StaxParserUtil method getRequiredAttributeValue.
public static String getRequiredAttributeValue(StartElement startElement, HasQName attrName) throws ParsingException {
final QName qName = attrName.getQName();
Attribute attr = startElement.getAttributeByName(qName);
if (attr == null)
throw logger.parserRequiredAttribute(qName.getLocalPart());
return StaxParserUtil.getAttributeValue(attr);
}
use of org.keycloak.saml.processing.core.parsers.util.HasQName in project keycloak by keycloak.
the class StaxParserUtil method getRequiredAttributeValueRP.
public static String getRequiredAttributeValueRP(StartElement startElement, HasQName attrName) throws ParsingException {
final QName qName = attrName.getQName();
Attribute attr = startElement.getAttributeByName(qName);
if (attr == null)
throw logger.parserRequiredAttribute(qName.getLocalPart());
return StaxParserUtil.getAttributeValueRP(attr);
}