View Javadoc

1   /*
2    * $Id: PGPSecurityContext.java 7976 2007-08-21 14:26:13Z dirk.olmes $
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 CPAL v1.0
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  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       * (non-Javadoc)
27       * 
28       * @see org.mule.umo.security.UMOSecurityContext#setAuthentication(org.mule.umo.security.UMOAuthentication)
29       */
30      public void setAuthentication(UMOAuthentication authentication)
31      {
32          this.authentication = (PGPAuthentication)authentication;
33      }
34  
35      /*
36       * (non-Javadoc)
37       * 
38       * @see org.mule.umo.security.UMOSecurityContext#getAuthentication()
39       */
40      public UMOAuthentication getAuthentication()
41      {
42          return authentication;
43      }
44  
45  }