001/**
002 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
003 *
004 * Copyright (c) 2006 Sun Microsystems Inc. All Rights Reserved
005 *
006 * The contents of this file are subject to the terms
007 * of the Common Development and Distribution License
008 * (the License). You may not use this file except in
009 * compliance with the License.
010 *
011 * You can obtain a copy of the License at
012 * https://opensso.dev.java.net/public/CDDLv1.0.html or
013 * opensso/legal/CDDLv1.0.txt
014 * See the License for the specific language governing
015 * permission and limitations under the License.
016 *
017 * When distributing Covered Code, include this CDDL
018 * Header Notice in each file and include the License file
019 * at opensso/legal/CDDLv1.0.txt.
020 * If applicable, add the following below the CDDL Header,
021 * with the fields enclosed by brackets [] replaced by
022 * your own identifying information:
023 * "Portions Copyrighted [year] [name of copyright owner]"
024 *
025 * $Id: AttributeStatement.java,v 1.2 2008/06/25 05:47:40 qcheng Exp $
026 *
027 */
028
029
030
031package com.sun.identity.saml2.assertion;
032
033import java.util.List;
034import com.sun.identity.saml2.common.SAML2Exception;
035
036/**
037 * The <code>AttributeStatement</code> element describes a statement by
038 * the SAML authority asserting that the assertion subject is associated with
039 * the specified attributes. It is of type <code>AttributeStatementType</code>.
040 * <p>
041 * <pre>
042 * &lt;complexType name="AttributeStatementType">
043 *   &lt;complexContent>
044 *     &lt;extension base="{urn:oasis:names:tc:SAML:2.0:assertion}
045 *     StatementAbstractType">
046 *       &lt;choice maxOccurs="unbounded">
047 *         &lt;element ref="{urn:oasis:names:tc:SAML:2.0:assertion}Attribute"/>
048 *         &lt;element ref="{urn:oasis:names:tc:SAML:2.0:assertion}
049 *         EncryptedAttribute"/>
050 *       &lt;/choice>
051 *     &lt;/extension>
052 *   &lt;/complexContent>
053 * &lt;/complexType>
054 * </pre>
055 * @supported.all.api
056 */
057public interface AttributeStatement extends Statement {
058
059    /**
060     * Returns <code>Attribute</code>(s) of the statement. 
061     *
062     * @return List of <code>Attribute</code>(s) in the statement.
063     * @see #setAttribute(List)
064     */
065    public List getAttribute();
066
067    /**
068     * Sets <code>Attribute</code>(s) of the statement.
069     *
070     * @param value List of new <code>Attribute</code>(s).
071     * @throws SAML2Exception if the object is immutable.
072     * @see #getAttribute()
073     */
074    public void setAttribute(List value)
075        throws SAML2Exception;
076
077    /**
078     * Returns <code>EncryptedAttribute</code>(s) of the statement. 
079     *
080     * @return List of <code>EncryptedAttribute</code>(s) in the statement.
081     * @see #setEncryptedAttribute(List)
082     */
083    public List getEncryptedAttribute();
084
085    /**
086     * Sets <code>EncryptedAttribute</code>(s) of the statement.
087     *
088     * @param value List of new <code>EncryptedAttribute</code>(s).
089     * @throws SAML2Exception if the object is immutable.
090     * @see #getEncryptedAttribute()
091     */
092    public void setEncryptedAttribute(List value)
093        throws SAML2Exception;
094
095}
096




























































Copyright © 2010-2017, ForgeRock All Rights Reserved.