Coverage Report - org.mule.security.DefaultSecurityContext
 
Classes in this File Line Coverage Branch Coverage Complexity
DefaultSecurityContext
0%
0/6
N/A
1
 
 1  
 /*
 2  
  * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
 3  
  * The software in this package is published under the terms of the CPAL v1.0
 4  
  * license, a copy of which has been included with this distribution in the
 5  
  * LICENSE.txt file.
 6  
  */
 7  
 package org.mule.security;
 8  
 
 9  
 import org.mule.api.security.Authentication;
 10  
 import org.mule.api.security.SecurityContext;
 11  
 
 12  
 /**
 13  
  * Trivial {@link SecurityContext} implementation which simply holds the {@link Authentication} object.
 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  0
     {
 23  0
         this.authentication = authentication;
 24  0
     }
 25  
 
 26  
     public final Authentication getAuthentication()
 27  
     {
 28  0
         return authentication;
 29  
     }
 30  
 
 31  
     public final void setAuthentication(Authentication authentication)
 32  
     {
 33  0
         this.authentication = authentication;
 34  0
     }
 35  
 }