01: /*
02: * ==============================================================================
03: * Licensed under the Apache License, Version 2.0 (the "License"); you may not
04: * use this file except in compliance with the License. You may obtain a copy of
05: * the License at
06: *
07: * http://www.apache.org/licenses/LICENSE-2.0
08: *
09: * Unless required by applicable law or agreed to in writing, software
10: * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11: * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12: * License for the specific language governing permissions and limitations under
13: * the License.
14: */
15: package wicket.jmx;
16:
17: /**
18: * Exposes Application related functionality for JMX.
19: *
20: * @author eelcohillenius
21: */
22: public class SecuritySettings implements SecuritySettingsMBean {
23: private final wicket.Application application;
24:
25: /**
26: * Create.
27: *
28: * @param application
29: */
30: public SecuritySettings(wicket.Application application) {
31: this .application = application;
32: }
33:
34: /**
35: * @see wicket.jmx.SecuritySettingsMBean#getAuthorizationStrategy()
36: */
37: public String getAuthorizationStrategy() {
38: return Stringz.className(application.getSecuritySettings()
39: .getAuthorizationStrategy());
40: }
41:
42: /**
43: * @see wicket.jmx.SecuritySettingsMBean#getCryptFactory()
44: */
45: public String getCryptFactory() {
46: return Stringz.className(application.getSecuritySettings()
47: .getCryptFactory());
48: }
49:
50: /**
51: * @see wicket.jmx.SecuritySettingsMBean#getUnauthorizedComponentInstantiationListener()
52: */
53: public String getUnauthorizedComponentInstantiationListener() {
54: return Stringz.className(application.getSecuritySettings()
55: .getUnauthorizedComponentInstantiationListener());
56: }
57: }
|