Coverage Report - org.mule.module.spring.security.SpringAuthenticationAdapter
 
Classes in this File Line Coverage Branch Coverage Complexity
SpringAuthenticationAdapter
0%
0/21
N/A
1
 
 1  
 /*
 2  
  * $Id: AcegiAuthenticationAdapter.java 10662 2008-02-01 13:10:14Z romikk $
 3  
  * --------------------------------------------------------------------------------------
 4  
  * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.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.spring.security;
 12  
 
 13  
 import org.mule.api.security.Authentication;
 14  
 
 15  
 import java.util.Map;
 16  
 
 17  
 /**
 18  
  * 
 19  
  */
 20  
 public class SpringAuthenticationAdapter implements Authentication
 21  
 {
 22  
     private static final long serialVersionUID = -5906282218126929871L;
 23  
 
 24  
     private org.springframework.security.Authentication delegate;
 25  
     private Map properties;
 26  
 
 27  
     public SpringAuthenticationAdapter(org.springframework.security.Authentication authentication)
 28  0
     {
 29  0
         this.delegate = authentication;
 30  0
     }
 31  
 
 32  
     public SpringAuthenticationAdapter(org.springframework.security.Authentication authentication, Map properties)
 33  0
     {
 34  0
         this.delegate = authentication;
 35  0
         this.properties = properties;
 36  0
     }
 37  
 
 38  
     public void setAuthenticated(boolean b)
 39  
     {
 40  0
         delegate.setAuthenticated(b);
 41  0
     }
 42  
 
 43  
     public boolean isAuthenticated()
 44  
     {
 45  0
         return delegate.isAuthenticated();
 46  
     }
 47  
 
 48  
     public org.springframework.security.GrantedAuthority[] getAuthorities()
 49  
     {
 50  0
         return delegate.getAuthorities();
 51  
     }
 52  
 
 53  
     public Object getCredentials()
 54  
     {
 55  0
         return delegate.getCredentials();
 56  
     }
 57  
 
 58  
     public Object getDetails()
 59  
     {
 60  0
         return delegate.getDetails();
 61  
     }
 62  
 
 63  
     public Object getPrincipal()
 64  
     {
 65  0
         return delegate.getPrincipal();
 66  
     }
 67  
 
 68  
     public int hashCode()
 69  
     {
 70  0
         return delegate.hashCode();
 71  
     }
 72  
 
 73  
     public boolean equals(Object another)
 74  
     {
 75  0
         return delegate.equals(another);
 76  
     }
 77  
 
 78  
     public String getName()
 79  
     {
 80  0
         return delegate.getName();
 81  
     }
 82  
 
 83  
     public org.springframework.security.Authentication getDelegate()
 84  
     {
 85  0
         return delegate;
 86  
     }
 87  
 
 88  
     public Map getProperties()
 89  
     {
 90  0
         return properties;
 91  
     }
 92  
 
 93  
     public void setProperties(Map properties)
 94  
     {
 95  0
         this.properties = properties;
 96  0
     }
 97  
 }