1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
package org.mule.module.acegi; |
12 | |
|
13 | |
import org.mule.api.security.Authentication; |
14 | |
|
15 | |
import java.util.Map; |
16 | |
|
17 | |
import org.acegisecurity.GrantedAuthority; |
18 | |
|
19 | |
|
20 | |
|
21 | |
|
22 | |
public class AcegiAuthenticationAdapter implements Authentication |
23 | |
{ |
24 | |
private org.acegisecurity.Authentication delegate; |
25 | |
private Map properties; |
26 | |
|
27 | |
public AcegiAuthenticationAdapter(org.acegisecurity.Authentication authentication) |
28 | 0 | { |
29 | 0 | this.delegate = authentication; |
30 | 0 | } |
31 | |
|
32 | |
public AcegiAuthenticationAdapter(org.acegisecurity.Authentication authentication, Map properties) |
33 | 0 | { |
34 | 0 | this.delegate = authentication; |
35 | 0 | this.properties = properties; |
36 | 0 | } |
37 | |
|
38 | |
public void setAuthenticated(boolean b) |
39 | |
{ |
40 | 0 | delegate.setAuthenticated(b); |
41 | 0 | } |
42 | |
|
43 | |
public boolean isAuthenticated() |
44 | |
{ |
45 | 0 | return delegate.isAuthenticated(); |
46 | |
} |
47 | |
|
48 | |
public GrantedAuthority[] getAuthorities() |
49 | |
{ |
50 | 0 | return delegate.getAuthorities(); |
51 | |
} |
52 | |
|
53 | |
public Object getCredentials() |
54 | |
{ |
55 | 0 | return delegate.getCredentials(); |
56 | |
} |
57 | |
|
58 | |
public Object getDetails() |
59 | |
{ |
60 | 0 | return delegate.getDetails(); |
61 | |
} |
62 | |
|
63 | |
public Object getPrincipal() |
64 | |
{ |
65 | 0 | return delegate.getPrincipal(); |
66 | |
} |
67 | |
|
68 | |
public int hashCode() |
69 | |
{ |
70 | 0 | return delegate.hashCode(); |
71 | |
} |
72 | |
|
73 | |
public boolean equals(Object another) |
74 | |
{ |
75 | 0 | return delegate.equals(another); |
76 | |
} |
77 | |
|
78 | |
public String getName() |
79 | |
{ |
80 | 0 | return delegate.getName(); |
81 | |
} |
82 | |
|
83 | |
public org.acegisecurity.Authentication getDelegate() |
84 | |
{ |
85 | 0 | return delegate; |
86 | |
} |
87 | |
|
88 | |
public Map getProperties() |
89 | |
{ |
90 | 0 | return properties; |
91 | |
} |
92 | |
|
93 | |
public void setProperties(Map properties) |
94 | |
{ |
95 | 0 | this.properties = properties; |
96 | 0 | } |
97 | |
} |