1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.jetspeed.security.impl;
18
19 import org.apache.jetspeed.security.AuthenticationProviderProxy;
20 import org.apache.jetspeed.security.SecurityProvider;
21 import org.apache.jetspeed.security.spi.GroupSecurityHandler;
22 import org.apache.jetspeed.security.spi.RoleSecurityHandler;
23 import org.apache.jetspeed.security.spi.SecurityMappingHandler;
24
25 /***
26 * @author <a href="">David Le Strat </a>
27 *
28 */
29 public class SecurityProviderImpl implements SecurityProvider
30 {
31
32 /*** The {@link AuthenticationProviderProxy}. */
33 private AuthenticationProviderProxy atnProviderProxy;
34
35 /*** The {@link RoleSecurityHandler}. */
36 private RoleSecurityHandler roleSecurityHandler;
37
38 /*** The {@link GroupSecurityHandler}. */
39 private GroupSecurityHandler groupSecurityHandler;
40
41 /*** The {@link SecurityMappingHandler}. */
42 private SecurityMappingHandler securityMappingHandler;
43
44 /***
45 * <p>
46 * Constructor configuring the security services with the correct security
47 * 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 */
55 public SecurityProviderImpl(AuthenticationProviderProxy atnProviderProxy,
56 RoleSecurityHandler roleSecurityHandler, GroupSecurityHandler groupSecurityHandler,
57 SecurityMappingHandler securityMappingHandler)
58 {
59
60 this.atnProviderProxy = atnProviderProxy;
61
62 this.roleSecurityHandler = roleSecurityHandler;
63
64 this.groupSecurityHandler = groupSecurityHandler;
65
66 this.securityMappingHandler = securityMappingHandler;
67 }
68
69 /***
70 * @see org.apache.jetspeed.security.SecurityProvider#getAuthenticationProviderProxy()
71 */
72 public AuthenticationProviderProxy getAuthenticationProviderProxy()
73 {
74 return this.atnProviderProxy;
75 }
76
77 /***
78 * @see org.apache.jetspeed.security.SecurityProvider#getRoleSecurityHandler()
79 */
80 public RoleSecurityHandler getRoleSecurityHandler()
81 {
82 return this.roleSecurityHandler;
83 }
84
85 /***
86 * @see org.apache.jetspeed.security.SecurityProvider#getGroupSecurityHandler()
87 */
88 public GroupSecurityHandler getGroupSecurityHandler()
89 {
90 return this.groupSecurityHandler;
91 }
92
93 /***
94 * @see org.apache.jetspeed.security.SecurityProvider#getSecurityMappingHandler()
95 */
96 public SecurityMappingHandler getSecurityMappingHandler()
97 {
98 return this.securityMappingHandler;
99 }
100 }