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