Coverage Report - org.mule.module.jaas.JaasSecurityContext
 
Classes in this File Line Coverage Branch Coverage Complexity
JaasSecurityContext
83%
5/6
N/A
1
 
 1  
 /*
 2  
  * $Id: JaasSecurityContext.java 10789 2008-02-12 20:04:43Z dfeist $
 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.module.jaas;
 12  
 
 13  
 import org.mule.api.security.Authentication;
 14  
 import org.mule.api.security.SecurityContext;
 15  
 
 16  
 public class JaasSecurityContext implements SecurityContext
 17  
 {
 18  
 
 19  
     private JaasAuthentication authentication;
 20  
 
 21  
     /**
 22  
      * Constructor for the class
 23  
      * 
 24  
      * @param authentication
 25  
      */
 26  
     public JaasSecurityContext(JaasAuthentication authentication)
 27  8
     {
 28  8
         this.authentication = authentication;
 29  8
     }
 30  
 
 31  
     /**
 32  
      * Returns the authentication
 33  
      * 
 34  
      * @return authentication
 35  
      */
 36  
     public final Authentication getAuthentication()
 37  
     {
 38  0
         return authentication;
 39  
     }
 40  
 
 41  
     /**
 42  
      * Sets the Authentication
 43  
      * 
 44  
      * @param authentication
 45  
      */
 46  
     public final void setAuthentication(Authentication authentication)
 47  
     {
 48  8
         this.authentication = (JaasAuthentication) authentication;
 49  8
     }
 50  
 }