assertion.addStatement(statement);
assertion.addStatement(statement);
/** * Add the user's current roles as attribute statement(s) on the SAML Assertion. * @param roles * @param assertion * @param principal */ private static void addRoleStatements(Set<String> roles, AssertionType assertion, Principal principal) { AttributeType attribute = new AttributeType("Role"); //$NON-NLS-1$ ASTChoiceType attributeAST = new ASTChoiceType(attribute); AttributeStatementType roleStatement = new AttributeStatementType(); roleStatement.addAttribute(attributeAST); if (roles != null) { for (String role : roles) { attribute.addAttributeValue(role); } } assertion.addStatement(roleStatement); }
assertion.addStatement(statement);
assertion.addStatement(statement);
assertion.addStatement(statement);
assertion.addStatement(authnStatement); assertion.addStatement(attrStatement); assertion.addStatement(attStatement);
assertion.addStatement(authnStatement); assertion.addStatement(attrStatement); assertion.addStatement(attStatement);
assertion.addStatement(authnStatement); assertion.addStatement(attrStatement); assertion.addStatement(attStatement);
} else if (JBossSAMLConstants.AUTHN_STATEMENT.get().equalsIgnoreCase(tag)) { AuthnStatementType authnStatementType = SAMLParserUtil.parseAuthnStatement(xmlEventReader); assertion.addStatement(authnStatementType); } else if (JBossSAMLConstants.ATTRIBUTE_STATEMENT.get().equalsIgnoreCase(tag)) { AttributeStatementType attributeStatementType = SAMLParserUtil.parseAttributeStatement(xmlEventReader); assertion.addStatement(attributeStatementType); } else if (JBossSAMLConstants.STATEMENT.get().equalsIgnoreCase(tag)) { startElement = StaxParserUtil.getNextStartElement(xmlEventReader); assertion.addStatement(authZStat); } else throw new RuntimeException(ErrorCodes.UNKNOWN_XSI + xsiTypeValue);
} else if (JBossSAMLConstants.AUTHN_STATEMENT.get().equalsIgnoreCase(tag)) { AuthnStatementType authnStatementType = SAMLParserUtil.parseAuthnStatement(xmlEventReader); assertion.addStatement(authnStatementType); } else if (JBossSAMLConstants.ATTRIBUTE_STATEMENT.get().equalsIgnoreCase(tag)) { AttributeStatementType attributeStatementType = SAMLParserUtil.parseAttributeStatement(xmlEventReader); assertion.addStatement(attributeStatementType); } else if (JBossSAMLConstants.STATEMENT.get().equalsIgnoreCase(tag)) { startElement = StaxParserUtil.getNextStartElement(xmlEventReader); assertion.addStatement(authZStat); } else throw new RuntimeException(ErrorCodes.UNKNOWN_XSI + xsiTypeValue);
assertion.addStatement(authnStatementType); assertion.addStatement(attributeStatementType); assertion.addStatement(authZStat);
} else if (JBossSAMLConstants.AUTHN_STATEMENT.get().equalsIgnoreCase(tag)) { AuthnStatementType authnStatementType = SAMLParserUtil.parseAuthnStatement(xmlEventReader); assertion.addStatement(authnStatementType); } else if (JBossSAMLConstants.ATTRIBUTE_STATEMENT.get().equalsIgnoreCase(tag)) { AttributeStatementType attributeStatementType = SAMLParserUtil.parseAttributeStatement(xmlEventReader); assertion.addStatement(attributeStatementType); } else if (JBossSAMLConstants.STATEMENT.get().equalsIgnoreCase(tag)) { startElement = StaxParserUtil.getNextStartElement(xmlEventReader); assertion.addStatement(authZStat); } else throw new RuntimeException(ErrorCodes.UNKNOWN_XSI + xsiTypeValue);
assertion.addStatement(authnStatement); assertion.addStatement(singleStatement); } else { for (AttributeStatementType attributeStatementType : attributeStatements) { assertion.addStatement(attributeStatementType);
assertion.addStatement(authnStatement); assertion.addStatement(singleStatement); } else { for (AttributeStatementType attributeStatementType : attributeStatements) { assertion.addStatement(attributeStatementType);
AttributeStatementType attributeStatement = this.attributeProvider.getAttributeStatement(); if (attributeStatement != null) { assertion.addStatement(attributeStatement);
AttributeStatementType attributeStatement = this.attributeProvider.getAttributeStatement(); if (attributeStatement != null) { assertion.addStatement(attributeStatement);
AttributeStatementType attributeStatement = this.attributeProvider.getAttributeStatement(); if (attributeStatement != null) { assertion.addStatement(attributeStatement);
if (attributeStatement != null) assertion.addStatement(attributeStatement);
if (attributeStatement != null) assertion.addStatement(attributeStatement);