View Javadoc

1   /*
2    * Copyright 2008 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  package org.opensaml.xacml.profile.saml;
18  
19  import java.util.List;
20  
21  import javax.xml.namespace.QName;
22  
23  import org.opensaml.common.SAMLObject;
24  import org.opensaml.xacml.XACMLObject;
25  import org.opensaml.xacml.policy.PolicySetType;
26  import org.opensaml.xacml.policy.PolicyType;
27  
28  /**
29   * /** A SAML XACML profile ReferencedPoliciesType schema type.
30   */
31  public interface ReferencedPoliciesType extends SAMLObject, XACMLObject {
32  
33      /** Element local name. */
34      public static final String DEFAULT_ELEMENT_LOCAL_NAME = "ReferencedPolicies";
35  
36      /** Default element name for XACML 1.0. */
37      public static final QName DEFAULT_ELEMENT_NAME_XACML10 = new QName(SAMLProfileConstants.SAML20XACML10_NS,
38              DEFAULT_ELEMENT_LOCAL_NAME, SAMLProfileConstants.SAML20XACMLASSERTION_PREFIX);
39  
40      /** Default element name for XACML 1.1. */
41      public static final QName DEFAULT_ELEMENT_NAME_XACML11 = new QName(SAMLProfileConstants.SAML20XACML1_1_NS,
42              DEFAULT_ELEMENT_LOCAL_NAME, SAMLProfileConstants.SAML20XACMLASSERTION_PREFIX);
43  
44      /** Default element name for XACML 2.0. */
45      public static final QName DEFAULT_ELEMENT_NAME_XACML20 = new QName(SAMLProfileConstants.SAML20XACML20_NS,
46              DEFAULT_ELEMENT_LOCAL_NAME, SAMLProfileConstants.SAML20XACMLASSERTION_PREFIX);
47  
48      /** Default element name for XACML 3.0. */
49      public static final QName DEFAULT_ELEMENT_NAME_XACML30 = new QName(SAMLProfileConstants.SAML20XACML30_NS,
50              DEFAULT_ELEMENT_LOCAL_NAME, SAMLProfileConstants.SAML20XACMLASSERTION_PREFIX);
51  
52      /** Local name of the XSI type. */
53      public static final String TYPE_LOCAL_NAME = "ReferencedPoliciesType";
54  
55      /** QName of the XSI type.XACML1.0. */
56      public static final QName TYPE_NAME_XACML10 = new QName(SAMLProfileConstants.SAML20XACML10_NS, TYPE_LOCAL_NAME,
57              SAMLProfileConstants.SAML20XACMLASSERTION_PREFIX);
58  
59      /** QName of the XSI type.XACML1.1. */
60      public static final QName TYPE_NAME_XACML11 = new QName(SAMLProfileConstants.SAML20XACML1_1_NS, TYPE_LOCAL_NAME,
61              SAMLProfileConstants.SAML20XACMLASSERTION_PREFIX);
62  
63      /** QName of the XSI type.XACML2.0. */
64      public static final QName TYPE_NAME_XACML20 = new QName(SAMLProfileConstants.SAML20XACML20_NS, TYPE_LOCAL_NAME,
65              SAMLProfileConstants.SAML20XACMLASSERTION_PREFIX);
66  
67      /** QName of the XSI type.XACML3.0 . */
68      public static final QName TYPE_NAME_XACML30 = new QName(SAMLProfileConstants.SAML20XACML30_NS, TYPE_LOCAL_NAME,
69              SAMLProfileConstants.SAML20XACMLASSERTION_PREFIX);
70  
71      /**
72       * Gets the policieSets in this element.
73       * 
74       * @return the policieSets in this element
75       */
76      public List<PolicySetType> getPolicySets();
77  
78      /**
79       * Gets the policies in this element.
80       * 
81       * @return the policies in this element
82       */
83      public List<PolicyType> getPolicies();
84  }