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 {
23 this.authentication = authentication;
24 }
25
26 public final Authentication getAuthentication()
27 {
28 return authentication;
29 }
30
31 public final void setAuthentication(Authentication authentication)
32 {
33 this.authentication = authentication;
34 }
35 }