1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
package org.mule.security; |
8 | |
|
9 | |
import org.mule.api.security.Authentication; |
10 | |
import org.mule.api.security.SecurityContext; |
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
public class DefaultSecurityContext implements SecurityContext |
16 | |
{ |
17 | |
private static final long serialVersionUID = -3209120471953147538L; |
18 | |
|
19 | |
private Authentication authentication; |
20 | |
|
21 | |
public DefaultSecurityContext(Authentication authentication) |
22 | 0 | { |
23 | 0 | this.authentication = authentication; |
24 | 0 | } |
25 | |
|
26 | |
public final Authentication getAuthentication() |
27 | |
{ |
28 | 0 | return authentication; |
29 | |
} |
30 | |
|
31 | |
public final void setAuthentication(Authentication authentication) |
32 | |
{ |
33 | 0 | this.authentication = authentication; |
34 | 0 | } |
35 | |
} |