*/
public static AttributeType createAttribute(String name, String nameFormat,
Object... attributeValues)
{
ObjectFactory of = SAMLAssertionFactory.getObjectFactory();
AttributeType att = of.createAttributeType();
att.setName(name);
att.setNameFormat(nameFormat);
if(attributeValues != null && attributeValues.length > 0)
{
for(Object attributeValue:attributeValues)
{
att.getAttributeValue().add(of.createAttributeValue(attributeValue));
}
}
return att;
}