= (AttributeStatement)CommonUtil.buildXMLObject(AttributeStatement.DEFAULT_ELEMENT_NAME); attributeStatement.setSubject(subject); attributeStatement.getAttributes().addAll(attributeList);
private XSAny newAttributeValue(final Object value, final AttributeStatement statement) { final QName temp = statement.getElementQName(); final QName qName = new QName(temp.getNamespaceURI(), AttributeValue.DEFAULT_ELEMENT_NAME.getLocalPart(), temp.getPrefix()); final XSAny stringValue = this.attrValueBuilder.buildObject(qName); if (value instanceof String) { stringValue.setTextContent((String) value); } else { stringValue.setTextContent(value.toString()); } return stringValue; }
/** {@inheritDoc} */ protected void processChildElement(XMLObject parentSAMLObject, XMLObject childSAMLObject) throws UnmarshallingException { AttributeStatement attributeStatement = (AttributeStatement) parentSAMLObject; if (childSAMLObject instanceof Attribute) { attributeStatement.getAttributes().add((Attribute) childSAMLObject); } else { super.processChildElement(parentSAMLObject, childSAMLObject); } } }
org.opensaml.saml1.core.AttributeStatement attrStmt = (org.opensaml.saml1.core.AttributeStatement) stmt; samlSubject = attrStmt.getSubject(); } else if (stmt instanceof org.opensaml.saml1.core.AuthenticationStatement) { org.opensaml.saml1.core.AuthenticationStatement authStmt =
/** {@inheritDoc} */ public AttributeStatement buildAttributeStatement(AttributeQuery query, Collection<BaseAttribute> attributes) throws AttributeEncodingException { Collection<Attribute> encodedAttributes = encodeAttributes(query, attributes); if (encodedAttributes != null && !encodedAttributes.isEmpty()) { AttributeStatement statement = statementBuilder.buildObject(); statement.getAttributes().addAll(encodedAttributes); return statement; } else { log.debug("No attributes were encoded, no attribute statement created."); return null; } }
org.opensaml.saml1.core.AttributeStatement attrStmt = (org.opensaml.saml1.core.AttributeStatement) stmt; samlSubject = attrStmt.getSubject(); } else if (stmt instanceof org.opensaml.saml1.core.AuthenticationStatement) { org.opensaml.saml1.core.AuthenticationStatement authStmt =
attrStatement.setSubject(subject); attribute.getAttributeValues().add(newAttributeValue(e.getValue(), attrStatement)); attrStatement.getAttributes().add(attribute); attribute.setAttributeNamespace(NAMESPACE); attribute.getAttributeValues().add(newAttributeValue(REMEMBER_ME_ATTRIBUTE_VALUE, attrStatement)); attrStatement.getAttributes().add(attribute);
/** {@inheritDoc} */ public void validate(AttributeStatement attributeStatement) throws ValidationException { super.validate(attributeStatement); if (attributeStatement.getAttributes().size() == 0) { throw new ValidationException("No Attribute Element present"); } } }
org.opensaml.saml1.core.AttributeStatement attrStmt = (org.opensaml.saml1.core.AttributeStatement) stmt; samlSubject = attrStmt.getSubject(); } else if (stmt instanceof org.opensaml.saml1.core.AuthenticationStatement) { org.opensaml.saml1.core.AuthenticationStatement authStmt =
Subject attributeSubject = SAML1ComponentBuilder.createSaml1v1Subject(statementBean.getSubject()); attributeStatement.setSubject(attributeSubject); attributeValues ); attributeStatement.getAttributes().add(samlAttribute);
Iterator<Attribute> attrs = statement.getAttributes().iterator();
org.opensaml.saml1.core.AttributeStatement attrStmt = (org.opensaml.saml1.core.AttributeStatement) stmt; samlSubject = attrStmt.getSubject(); } else if (stmt instanceof org.opensaml.saml1.core.AuthenticationStatement) { org.opensaml.saml1.core.AuthenticationStatement authStmt =
Subject attributeSubject = SAML1ComponentBuilder.createSaml1v1Subject(statementBean.getSubject()); attributeStatement.setSubject(attributeSubject); attributeValues ); attributeStatement.getAttributes().add(samlAttribute);
subject.setSubjectConfirmation(subjectConf); attributeStmt.setSubject(subject); attribute.getAttributeValues().add(stringValue); attributeStmt.getAttributes().add(attribute);
subject.setSubjectConfirmation(subjectConf); attributeStmt.setSubject(subject); attribute.getAttributeValues().add(stringValue); attributeStmt.getAttributes().add(attribute);