super(namespaceURI, elementLocalName);
}
/** {@inheritDoc} */
protected void processAttribute(XMLObject samlObject, Attr attribute) throws UnmarshallingException {
RequestedAuthnContext rac = (RequestedAuthnContext) samlObject;
if (attribute.getLocalName().equals(RequestedAuthnContext.COMPARISON_ATTRIB_NAME)) {
if ("exact".equals(attribute.getValue()))
rac.setComparison(AuthnContextComparisonTypeEnumeration.EXACT);
else if ("minimum".equals(attribute.getValue()))
rac.setComparison(AuthnContextComparisonTypeEnumeration.MINIMUM);
else if ("maximum".equals(attribute.getValue()))
rac.setComparison(AuthnContextComparisonTypeEnumeration.MAXIMUM);
else if ("better".equals(attribute.getValue()))
rac.setComparison(AuthnContextComparisonTypeEnumeration.BETTER);
else
throw new UnmarshallingException("Saw an invalid value for Comparison attribute: "
+ attribute.getValue());
} else
super.processAttribute(samlObject, attribute);