View Javadoc

1   /*
2    * Copyright [2007] [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 edu.internet2.middleware.shibboleth.common.config.relyingparty.saml;
18  
19  import edu.internet2.middleware.shibboleth.common.config.BaseSpringNamespaceHandler;
20  
21  /**
22   * Spring namespace handler for the Shibboleth relying party namespace.
23   */
24  public class SAMLRelyingPartyNamespaceHandler extends BaseSpringNamespaceHandler {
25  
26      /** Namespace for this handler. */
27      public static final String NAMESPACE = "urn:mace:shibboleth:2.0:relying-party:saml";
28  
29      /** {@inheritDoc} */
30      public void init() {
31  
32          registerBeanDefinitionParser(ShibbolethSSOProfileConfigurationBeanDefinitionParser.TYPE_NAME,
33                  new ShibbolethSSOProfileConfigurationBeanDefinitionParser());
34  
35          registerBeanDefinitionParser(SAML1AttributeQueryProfileConfigurationBeanDefinitionParser.TYPE_NAME,
36                  new SAML1AttributeQueryProfileConfigurationBeanDefinitionParser());
37  
38          registerBeanDefinitionParser(SAML1ArtifactResolutionProfileConfigurationBeanDefinitionParser.TYPE_NAME,
39                  new SAML1ArtifactResolutionProfileConfigurationBeanDefinitionParser());
40  
41          registerBeanDefinitionParser(SAML2SSOProfileConfigurationBeanDefinitionParser.TYPE_NAME,
42                  new SAML2SSOProfileConfigurationBeanDefinitionParser());
43  
44          registerBeanDefinitionParser(SAML2LogoutRequestProfileConfigurationBeanDefinitionParser.TYPE_NAME,
45                  new SAML2LogoutRequestProfileConfigurationBeanDefinitionParser());
46  
47          registerBeanDefinitionParser(SAML2AttributeQueryProfileConfigurationBeanDefinitionParser.TYPE_NAME,
48                  new SAML2AttributeQueryProfileConfigurationBeanDefinitionParser());
49  
50          registerBeanDefinitionParser(SAML2ArtifactResolutionProfileConfigurationBeanDefinitionParser.TYPE_NAME,
51                  new SAML2ArtifactResolutionProfileConfigurationBeanDefinitionParser());
52      }
53  }