%line | %branch | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
org.apache.jetspeed.security.impl.SecurityProviderImpl |
|
|
1 | /* |
|
2 | * Licensed to the Apache Software Foundation (ASF) under one or more |
|
3 | * contributor license agreements. See the NOTICE file distributed with |
|
4 | * this work for additional information regarding copyright ownership. |
|
5 | * The ASF licenses this file to You under the Apache License, Version 2.0 |
|
6 | * (the "License"); you may not use this file except in compliance with |
|
7 | * the License. You may obtain a copy of the License at |
|
8 | * |
|
9 | * http://www.apache.org/licenses/LICENSE-2.0 |
|
10 | * |
|
11 | * Unless required by applicable law or agreed to in writing, software |
|
12 | * 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 and |
|
15 | * limitations under the License. |
|
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 | 0 | { |
59 | // The authentication provider proxy. |
|
60 | 0 | this.atnProviderProxy = atnProviderProxy; |
61 | // The role security handler. |
|
62 | 0 | this.roleSecurityHandler = roleSecurityHandler; |
63 | // The group security handler. |
|
64 | 0 | this.groupSecurityHandler = groupSecurityHandler; |
65 | // The security mapping handler. |
|
66 | 0 | this.securityMappingHandler = securityMappingHandler; |
67 | 0 | } |
68 | ||
69 | /** |
|
70 | * @see org.apache.jetspeed.security.SecurityProvider#getAuthenticationProviderProxy() |
|
71 | */ |
|
72 | public AuthenticationProviderProxy getAuthenticationProviderProxy() |
|
73 | { |
|
74 | 0 | return this.atnProviderProxy; |
75 | } |
|
76 | ||
77 | /** |
|
78 | * @see org.apache.jetspeed.security.SecurityProvider#getRoleSecurityHandler() |
|
79 | */ |
|
80 | public RoleSecurityHandler getRoleSecurityHandler() |
|
81 | { |
|
82 | 0 | return this.roleSecurityHandler; |
83 | } |
|
84 | ||
85 | /** |
|
86 | * @see org.apache.jetspeed.security.SecurityProvider#getGroupSecurityHandler() |
|
87 | */ |
|
88 | public GroupSecurityHandler getGroupSecurityHandler() |
|
89 | { |
|
90 | 0 | return this.groupSecurityHandler; |
91 | } |
|
92 | ||
93 | /** |
|
94 | * @see org.apache.jetspeed.security.SecurityProvider#getSecurityMappingHandler() |
|
95 | */ |
|
96 | public SecurityMappingHandler getSecurityMappingHandler() |
|
97 | { |
|
98 | 0 | return this.securityMappingHandler; |
99 | } |
|
100 | } |
This report is generated by jcoverage, Maven and Maven JCoverage Plugin. |