1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28 package net.sf.jguard.core.authentication.bindings;
29
30
31
32 import javax.security.auth.callback.CallbackHandler;
33
34
35
36
37
38
39
40 public class AuthenticationBindingsWrapper extends AbstractAuthenticationBindings implements AuthenticationBindings {
41
42 protected AuthenticationBindings authNBindings = null;
43 public AuthenticationBindingsWrapper(AuthenticationBindings authenticationBindings){
44 super(authenticationBindings.getAuthenticationBindingsFactory(), authenticationBindings.getScope(), authenticationBindings.getContext());
45 this.authNBindings = authenticationBindings;
46 }
47
48 public Object getApplicationAttribute(String key) {
49 return authNBindings.getApplicationAttribute(key);
50 }
51
52
53 public CallbackHandler getCallbackHandler() {
54 return authNBindings.getCallbackHandler();
55 }
56
57
58 public Object getRequestAttribute(String key) {
59 return authNBindings.getRequestAttribute(key);
60 }
61
62
63 public void process() {
64 authNBindings.process();
65 }
66
67
68 public void setApplicationAttribute(String key,
69 Object value) {
70 authNBindings.setApplicationAttribute(key,value);
71 }
72
73 public void setRequestAttribute(String key,Object value) {
74 authNBindings.setRequestAttribute(key,value);
75
76 }
77
78
79 public void removeApplicationAttribute(String key) {
80 authNBindings.removeApplicationAttribute(key);
81 }
82
83 public void removeRequestAttribute(String key) {
84 authNBindings.removeRequestAttribute(key);
85 }
86
87 public String getInitApplicationAttribute(String key) {
88 return authNBindings.getInitApplicationAttribute(key);
89 }
90
91
92 }