KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mule > extras > pgp > PGPSecurityContext


1 /*
2  * $Id: PGPSecurityContext.java 3798 2006-11-04 04:07:14Z aperepel $
3  * --------------------------------------------------------------------------------------
4  * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com
5  *
6  * The software in this package is published under the terms of the MuleSource MPL
7  * license, a copy of which has been included with this distribution in the
8  * LICENSE.txt file.
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 /**
17  * @author ariva
18  */

19 public class PGPSecurityContext implements UMOSecurityContext
20 {
21
22     PGPAuthentication authentication;
23
24     public PGPSecurityContext(PGPAuthentication authentication)
25     {
26         this.authentication = authentication;
27     }
28
29     /*
30      * (non-Javadoc)
31      *
32      * @see org.mule.umo.security.UMOSecurityContext#setAuthentication(org.mule.umo.security.UMOAuthentication)
33      */

34     public void setAuthentication(UMOAuthentication authentication)
35     {
36         this.authentication = (PGPAuthentication)authentication;
37     }
38
39     /*
40      * (non-Javadoc)
41      *
42      * @see org.mule.umo.security.UMOSecurityContext#getAuthentication()
43      */

44     public UMOAuthentication getAuthentication()
45     {
46         return authentication;
47     }
48
49 }
50
Popular Tags