Coverage Report - org.mule.module.spring.security.PreAuthenticatedAuthenticationProvider
 
Classes in this File Line Coverage Branch Coverage Complexity
PreAuthenticatedAuthenticationProvider
0%
0/2
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.module.spring.security;
 8  
 
 9  
 import org.springframework.security.core.Authentication;
 10  
 import org.springframework.security.web.authentication.preauth.PreAuthenticatedAuthenticationToken;
 11  
 
 12  
 
 13  
 /**
 14  
  * Provides a pre authenticated authentication
 15  
  * 
 16  
  * @author estebanroblesluna
 17  
  */
 18  0
 public class PreAuthenticatedAuthenticationProvider implements SpringAuthenticationProvider
 19  
 {
 20  
     /**
 21  
      * {@inheritDoc}
 22  
      */
 23  
     public Authentication getAuthentication(org.mule.api.security.Authentication authentication)
 24  
     {
 25  0
         return new PreAuthenticatedAuthenticationToken(authentication.getPrincipal(),
 26  
             authentication.getCredentials());
 27  
     }
 28  
 }
 29  
 
 30