AttributeStatementType attributeStatement = (AttributeStatementType) statement;
for (Object object : attributeStatement.getAttributeOrEncryptedAttribute())
{
if (object instanceof AttributeType)
{
AttributeType attr = (AttributeType) object;
List<String> values = user.attributes.get(attr.getName());
if (values == null)
{
values = new LinkedList<String>();
}
for (Object value : attr.getAttributeValue())
{
values.add((String) value);
}
user.attributes.put(attr.getName(), values);
}
else
{
log.warn("Encrypted attributes are not supported. Ignoring the attribute.");
}