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.attribute.provider.SAML1AttributeAuthority;
20  import edu.internet2.middleware.shibboleth.common.relyingparty.provider.saml1.AbstractSAML1ProfileConfiguration;
21  
22  /**
23   * Base Spring factory bean for SAML 1 profile configurations.
24   */
25  abstract class AbstractSAML1ProfileConfigurationFactoryBean extends AbstractSAMLProfileConfigurationFactoryBean {
26      
27      /** Attribute authority for the profile configuration. */
28      private SAML1AttributeAuthority attributeAuthority;
29  
30      /**
31       * Gets the attribute authority for the profile configuration.
32       * 
33       * @return attribute authority for the profile configuration
34       */
35      public SAML1AttributeAuthority getAttributeAuthority(){
36          return attributeAuthority;
37      }
38      
39      /**
40       * Sets the attribute authority for the profile configuration.
41       * 
42       * @param authority attribute authority for the profile configuration
43       */
44      public void setAttributeAuthority(SAML1AttributeAuthority authority){
45          attributeAuthority = authority;
46      }
47      
48      /**
49       * Populates the given profile configuration with standard information.
50       * 
51       * @param configuration configuration to populate
52       */
53      protected void populateBean(AbstractSAML1ProfileConfiguration configuration){
54          super.populateBean(configuration);
55          configuration.setAttributeAuthority(getAttributeAuthority());
56      }
57  }