1/*2 * Licensed to the Apache Software Foundation (ASF) under one or more3 * contributor license agreements. See the NOTICE file distributed with4 * this work for additional information regarding copyright ownership.5 * The ASF licenses this file to You under the Apache License, Version 2.06 * (the "License"); you may not use this file except in compliance with7 * the License. You may obtain a copy of the License at8 *9 * http://www.apache.org/licenses/LICENSE-2.010 *11 * Unless required by applicable law or agreed to in writing, software12 * distributed under the License is distributed on an "AS IS" BASIS,13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.14 * See the License for the specific language governing permissions and15 * limitations under the License.16 */17packageorg.apache.jetspeed.security.impl;
1819import org.apache.jetspeed.security.AuthenticationProviderProxy;
20import org.apache.jetspeed.security.SecurityProvider;
21import org.apache.jetspeed.security.spi.GroupSecurityHandler;
22import org.apache.jetspeed.security.spi.RoleSecurityHandler;
23import org.apache.jetspeed.security.spi.SecurityMappingHandler;
2425/***26 * @author <a href="">David Le Strat </a>27 * 28 */29publicclassSecurityProviderImpl implements SecurityProvider
30 {
3132/*** The {@link AuthenticationProviderProxy}. */33private AuthenticationProviderProxy atnProviderProxy;
3435/*** The {@link RoleSecurityHandler}. */36private RoleSecurityHandler roleSecurityHandler;
3738/*** The {@link GroupSecurityHandler}. */39private GroupSecurityHandler groupSecurityHandler;
4041/*** The {@link SecurityMappingHandler}. */42private SecurityMappingHandler securityMappingHandler;
4344/***45 * <p>46 * Constructor configuring the security services with the correct security47 * handlers.48 * </p>49 * 50 * @param atnProviderProxy The authentication provider.51 * @param roleSecurityHandler The role security handler.52 * @param groupSecurityHandler The group security handler.53 * @param securityMappingHandler The security mapping handler.54 */55publicSecurityProviderImpl(AuthenticationProviderProxy atnProviderProxy,
56 RoleSecurityHandler roleSecurityHandler, GroupSecurityHandler groupSecurityHandler,
57 SecurityMappingHandler securityMappingHandler)
58 {
59// The authentication provider proxy.60this.atnProviderProxy = atnProviderProxy;
61// The role security handler.62this.roleSecurityHandler = roleSecurityHandler;
63// The group security handler.64this.groupSecurityHandler = groupSecurityHandler;
65// The security mapping handler.66this.securityMappingHandler = securityMappingHandler;
67 }
6869/***70 * @see org.apache.jetspeed.security.SecurityProvider#getAuthenticationProviderProxy()71 */72public AuthenticationProviderProxy getAuthenticationProviderProxy()
73 {
74returnthis.atnProviderProxy;
75 }
7677/***78 * @see org.apache.jetspeed.security.SecurityProvider#getRoleSecurityHandler()79 */80public RoleSecurityHandler getRoleSecurityHandler()
81 {
82returnthis.roleSecurityHandler;
83 }
8485/***86 * @see org.apache.jetspeed.security.SecurityProvider#getGroupSecurityHandler()87 */88public GroupSecurityHandler getGroupSecurityHandler()
89 {
90returnthis.groupSecurityHandler;
91 }
9293/***94 * @see org.apache.jetspeed.security.SecurityProvider#getSecurityMappingHandler()95 */96public SecurityMappingHandler getSecurityMappingHandler()
97 {
98returnthis.securityMappingHandler;
99 }
100 }