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