1
2
3
4
5
6
7
8
9
10
11 package org.mule.extras.pgp;
12
13 import org.mule.umo.security.UMOAuthentication;
14 import org.mule.umo.security.UMOSecurityContext;
15
16 public class PGPSecurityContext implements UMOSecurityContext
17 {
18 private volatile PGPAuthentication authentication;
19
20 public PGPSecurityContext(PGPAuthentication authentication)
21 {
22 this.authentication = authentication;
23 }
24
25
26
27
28
29
30 public void setAuthentication(UMOAuthentication authentication)
31 {
32 this.authentication = (PGPAuthentication)authentication;
33 }
34
35
36
37
38
39
40 public UMOAuthentication getAuthentication()
41 {
42 return authentication;
43 }
44
45 }