a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * Copyright (c) 2006 Sun Microsystems Inc. All Rights Reserved
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * The contents of this file are subject to the terms
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * of the Common Development and Distribution License
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * (the License). You may not use this file except in
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * compliance with the License.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * You can obtain a copy of the License at
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * https://opensso.dev.java.net/public/CDDLv1.0.html or
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * See the License for the specific language governing
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * permission and limitations under the License.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * When distributing Covered Code, include this CDDL
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * Header Notice in each file and include the License file
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * If applicable, add the following below the CDDL Header,
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * with the fields enclosed by brackets [] replaced by
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * your own identifying information:
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * "Portions Copyrighted [year] [name of copyright owner]"
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * $Id: AttributeStatement.java,v 1.2 2008/06/25 05:47:40 qcheng Exp $
a4544a5a0e622ef69e38641f87ab1b5685e05911Phill Cunnington * Portions Copyrighted 2015 ForgeRock AS.
449854c2a07b50ea64d9d6a8b03d18d4afeeee43Ken Stubbingsimport com.fasterxml.jackson.databind.annotation.JsonDeserialize;
449854c2a07b50ea64d9d6a8b03d18d4afeeee43Ken Stubbingsimport com.sun.identity.saml2.assertion.impl.AttributeStatementImpl;
449854c2a07b50ea64d9d6a8b03d18d4afeeee43Ken Stubbingsimport com.sun.identity.saml2.assertion.impl.SubjectImpl;
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Fosterimport com.sun.identity.saml2.common.SAML2Exception;
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * The <code>AttributeStatement</code> element describes a statement by
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * the SAML authority asserting that the assertion subject is associated with
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * the specified attributes. It is of type <code>AttributeStatementType</code>.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * <complexType name="AttributeStatementType">
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * <complexContent>
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * <extension base="{urn:oasis:names:tc:SAML:2.0:assertion}
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * StatementAbstractType">
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * <choice maxOccurs="unbounded">
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * <element ref="{urn:oasis:names:tc:SAML:2.0:assertion}Attribute"/>
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * <element ref="{urn:oasis:names:tc:SAML:2.0:assertion}
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * EncryptedAttribute"/>
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * </choice>
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * </extension>
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * </complexContent>
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * </complexType>
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * @supported.all.api
449854c2a07b50ea64d9d6a8b03d18d4afeeee43Ken Stubbings@JsonDeserialize(as=AttributeStatementImpl.class)
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Fosterpublic interface AttributeStatement extends Statement {
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * Returns <code>Attribute</code>(s) of the statement.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * @return List of <code>Attribute</code>(s) in the statement.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * @see #setAttribute(List)
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * Sets <code>Attribute</code>(s) of the statement.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * @param value List of new <code>Attribute</code>(s).
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * @throws SAML2Exception if the object is immutable.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * @see #getAttribute()
449854c2a07b50ea64d9d6a8b03d18d4afeeee43Ken Stubbings void setAttribute(List<Attribute> value) throws SAML2Exception;
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * Returns <code>EncryptedAttribute</code>(s) of the statement.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * @return List of <code>EncryptedAttribute</code>(s) in the statement.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * @see #setEncryptedAttribute(List)
449854c2a07b50ea64d9d6a8b03d18d4afeeee43Ken Stubbings List<EncryptedAttribute> getEncryptedAttribute();
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * Sets <code>EncryptedAttribute</code>(s) of the statement.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * @param value List of new <code>EncryptedAttribute</code>(s).
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * @throws SAML2Exception if the object is immutable.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * @see #getEncryptedAttribute()