121 if (name != null && name.trim().equals(
"")) name = null;
123 if (friendly != null && friendly.trim().equals(
"")) friendly = null;
125 AssertionType assertion = (AssertionType)context.getContextData().get(SAMLEndpoint.SAML_ASSERTION);
126 for (AttributeStatementType statement : assertion.getAttributeStatements()) {
127 for (AttributeStatementType.ASTChoiceType choice : statement.getAttributes()) {
128 AttributeType attr = choice.getAttribute();
129 if (name != null && !name.equals(attr.getName()))
continue;
130 if (friendly != null && !friendly.equals(attr.getFriendlyName()))
continue;
131 for (Object val : attr.getAttributeValue()) {
132 if (val.equals(desiredValue))
return true;
static final String ATTRIBUTE_VALUE
Definition: AttributeToRoleMapper.java:52
static final String ATTRIBUTE_NAME
Definition: AttributeToRoleMapper.java:50
static final String ATTRIBUTE_FRIENDLY_NAME
Definition: AttributeToRoleMapper.java:51