1 /* 2 * Copyright [2005] [University Corporation for Advanced Internet Development, Inc.] 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 /** 18 * 19 */ 20 21 package org.opensaml.saml2.core; 22 23 import java.util.List; 24 25 import javax.xml.namespace.QName; 26 27 import org.opensaml.common.xml.SAMLConstants; 28 29 /** 30 * SAML 2.0 AuthzDecisionQuery. 31 */ 32 public interface AuthzDecisionQuery extends SubjectQuery { 33 34 /** Element local name. */ 35 public static final String DEFAULT_ELEMENT_LOCAL_NAME = "AuthzDecisionQuery"; 36 37 /** Default element name. */ 38 public static final QName DEFAULT_ELEMENT_NAME = new QName(SAMLConstants.SAML20P_NS, DEFAULT_ELEMENT_LOCAL_NAME, 39 SAMLConstants.SAML20P_PREFIX); 40 41 /** Local name of the XSI type. */ 42 public static final String TYPE_LOCAL_NAME = "AuthzDecisionQueryType"; 43 44 /** QName of the XSI type. */ 45 public static final QName TYPE_NAME = new QName(SAMLConstants.SAML20P_NS, TYPE_LOCAL_NAME, 46 SAMLConstants.SAML20P_PREFIX); 47 48 /** Resource attribute name. */ 49 public static final String RESOURCE_ATTRIB_NAME = "Resource"; 50 51 /** 52 * Gets the Resource attrib value of this query. 53 * 54 * @return the Resource attrib value of this query 55 */ 56 public String getResource(); 57 58 /** 59 * Sets the Resource attrib value of this query. 60 * 61 * @param newResource the new Resource attrib value of this query 62 */ 63 public void setResource(String newResource); 64 65 /** 66 * Gets the Actions of this query. 67 * 68 * @return the Actions of this query 69 */ 70 public List<Action> getActions(); 71 72 /** 73 * Gets the Evidence of this query. 74 * 75 * @return the Evidence of this query 76 */ 77 public Evidence getEvidence(); 78 79 /** 80 * Sets the Evidence of this query. 81 * 82 * @param newEvidence the new Evidence of this query 83 */ 84 public void setEvidence(Evidence newEvidence); 85 86 }