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: AuthorizationDecisionStatement.java,v 1.2 2008/06/25 05:47:32 qcheng Exp $
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Fosterimport com.sun.identity.saml.common.SAMLException;
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster *The <code>AuthorizationDecisionStatement</code> element supplies a statement
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster *by the issuer that the request for access by the specified subject to the
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster *specified resource has resulted in the specified decision on the basis of
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster *some optionally specified evidence.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster *@supported.all.api
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster *Default constructor
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * Constructs an <code>AuthorizationStatement</code> element from an
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * existing XML block.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * @param element representing a DOM tree element
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * @exception SAMLException if there is an error in the sender or in
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * the element definition.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster public AuthorizationDecisionStatement(Element element)
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * Constructs an instance of <code>AuthorizationDecisionStatement</code>.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * @param subject (required) A Subject object
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * @param resource (required) A String identifying the resource to which
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * access authorization is sought.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * @param decision (required) The decision rendered by the issuer with
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * respect to the specified resource. The value is of the
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * <code>DecisionType</code> simple type.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * @param action (required) A List of Action objects specifying the set of
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * actions authorized to be performed on the specified resource.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * @param evidence (optional) An Evidence object representing a set of
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * assertions that the issuer replied on in making decisions.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * @exception SAMLException if there is an error in the sender.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster public AuthorizationDecisionStatement(Subject subject, String resource,
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster int decision, List action, EvidenceBase evidence)
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster super(subject, resource, decision, action, evidence);
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * Constructs a <code>AuthorizationDecisionStatement</code> instance.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster *@param subject (required) A Subject object
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster *@param resource (required) A String identifying the resource to which
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * access authorization is sought.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster *@param decision (required) The decision rendered by the issuer with
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * respect to the specified resource. The value is of the
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * <code>DecisionType</code> simple type.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster *@param action (required) A List of Action objects specifying the set of
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * actions authorized to be performed on the
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * specified resource.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster *@exception SAMLException if there is an error in the sender.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster public AuthorizationDecisionStatement(Subject subject, String resource,
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster int decision, List action) throws SAMLException {
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster protected EvidenceBase createEvidence(Element evidenceElement)
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster protected Subject createSubject(Element subjectElement)
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster protected Action createAction(Element actionElement) throws SAMLException {
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * Returns the evidence from <code>AuthorizationStatement</code>.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * @return An Evidence object that the issuer replied on in making decisions.