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: AuthzDecisionStatement.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>AuthzDecisionStatement</code> element describes a statement 038 * by the SAML authority asserting that a request for access by the assertion 039 * subject tot he specified resource has resulted in the specified authorization 040 * decision on the basis of some optionally specified evidence. Its type is 041 * <code>AuthzDecisionStatementType</code>. 042 * <p> 043 * <pre> 044 * <complexType name="AuthzDecisionStatementType"> 045 * <complexContent> 046 * <extension base="{urn:oasis:names:tc:SAML:2.0:assertion} 047 * StatementAbstractType"> 048 * <sequence> 049 * <element ref="{urn:oasis:names:tc:SAML:2.0:assertion}Action" 050 * maxOccurs="unbounded"/> 051 * <element ref="{urn:oasis:names:tc:SAML:2.0:assertion}Evidence" 052 * minOccurs="0"/> 053 * </sequence> 054 * <attribute name="Decision" use="required" 055 * type="{urn:oasis:names:tc:SAML:2.0:assertion}DecisionType" /> 056 * <attribute name="Resource" use="required" 057 * type="{http://www.w3.org/2001/XMLSchema}anyURI" /> 058 * </extension> 059 * </complexContent> 060 * </complexType> 061 * </pre> 062 * @supported.all.api 063 */ 064public interface AuthzDecisionStatement extends Statement { 065 066 /** 067 * Returns the <code>Action</code>(s) of the statement. 068 * 069 * @return List of <code>Action</code>(s) of the statement. 070 * @see #setAction(List) 071 */ 072 public List getAction(); 073 074 /** 075 * Sets the <code>Action</code>(s) of the statement. 076 * 077 * @param value List of new <code>Action</code>(s). 078 * @throws SAML2Exception if the object is immutable. 079 * @see #getAction() 080 */ 081 public void setAction(List value) 082 throws SAML2Exception; 083 084 /** 085 * Returns the <code>Evidence</code> of the statement. 086 * 087 * @return <code>Evidence</code> of the statement. 088 * @see #setEvidence(Evidence) 089 */ 090 public Evidence getEvidence(); 091 092 /** 093 * Sets the <code>Evidence</code> of the statement. 094 * 095 * @param value new value for <code>Evidence</code>. 096 * @throws SAML2Exception if the object is immutable. 097 * @see #getEvidence() 098 */ 099 public void setEvidence(Evidence value) 100 throws SAML2Exception; 101 102 /** 103 * Returns the <code>Resource</code> of the statement. 104 * 105 * @return the <code>Resource</code> of the statement. 106 * @see #setResource(String) 107 */ 108 public String getResource(); 109 110 /** 111 * Sets the <code>Resource</code> of the statement. 112 * 113 * @param value new <code>Resource</code> for the statement. 114 * @throws SAML2Exception if the object is immutable. 115 * @see #getResource() 116 */ 117 public void setResource(String value) 118 throws com.sun.identity.saml2.common.SAML2Exception; 119 120 /** 121 * Returns the <code>Decision</code> attribute of the statement. 122 * 123 * @return the <code>Decision</code> attribute of the statement. 124 * @see #setDecision(String) 125 */ 126 public String getDecision(); 127 128 /** 129 * Sets the <code>Decision</code> attribute. 130 * 131 * @param value new <code>Decision</code> for the statement. 132 * @throws SAML2Exception if the object is immutable. 133 * @see #getDecision() 134 */ 135 public void setDecision(String value) 136 throws SAML2Exception; 137 138}
Copyright © 2010-2017, ForgeRock All Rights Reserved.