/** * Constructs an instance of <code>Attribute</code>. * * @param name The name of the attribute. * @param nameSpace The namespace in which <code>AttributeName</code> elements are interpreted. * @param attributeValue an <code>AttributeValue</code> object. * @exception SAMLException if there is an error in the sender or in the element definition. */ public Attribute(String name, String nameSpace, String attributeValue) throws SAMLException { super(name, nameSpace); String escapeAttVal = SystemConfigurationUtil.getProperty(SAMLConstants.ESCAPE_ATTR_VALUE, "true"); boolean escapeAtt = "true".equalsIgnoreCase(escapeAttVal) ? true : false; if (escapeAtt) { this.addAttributeValue(XMLUtils.escapeSpecialCharacters(attributeValue)); } else { this.addAttributeValue(attributeValue); } }