assertion.addStatement(authnStatement);
}
if (handlerConfig.getParameter(DISABLE_SENDING_ROLES) == null && (roles != null && !roles.isEmpty())) {
AttributeStatementType attrStatement = null;
if(handlerConfig.getParameter(USE_MULTI_VALUED_ROLES) != null){
attrStatement = StatementUtil.createAttributeStatementForRoles(roles,true);
}else {
attrStatement = StatementUtil.createAttributeStatement(roles);
}
if(attrStatement != null){
assertion.addStatement(attrStatement);
}
}
// Add in the attributes information
if (attribs != null && attribs.size() > 0) {
AttributeStatementType attStatement = StatementUtil.createAttributeStatement(attribs);
assertion.addStatement(attStatement);
}
// Add assertion to the session
session.setAttribute(GeneralConstants.ASSERTION, assertion);