Coverage Report - org.acegisecurity.providers.cas.proxy.AcceptAnyCasProxy
 
Classes in this File Line Coverage Branch Coverage Complexity
AcceptAnyCasProxy
83% 
100% 
2
 
 1  
 /* Copyright 2004, 2005, 2006 Acegi Technology Pty Limited
 2  
  *
 3  
  * Licensed under the Apache License, Version 2.0 (the "License");
 4  
  * you may not use this file except in compliance with the License.
 5  
  * You may obtain a copy of the License at
 6  
  *
 7  
  *     http://www.apache.org/licenses/LICENSE-2.0
 8  
  *
 9  
  * Unless required by applicable law or agreed to in writing, software
 10  
  * distributed under the License is distributed on an "AS IS" BASIS,
 11  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 12  
  * See the License for the specific language governing permissions and
 13  
  * limitations under the License.
 14  
  */
 15  
 
 16  
 package org.acegisecurity.providers.cas.proxy;
 17  
 
 18  
 import org.acegisecurity.providers.cas.CasProxyDecider;
 19  
 import org.acegisecurity.providers.cas.ProxyUntrustedException;
 20  
 
 21  
 import org.apache.commons.logging.Log;
 22  
 import org.apache.commons.logging.LogFactory;
 23  
 
 24  
 import org.springframework.util.Assert;
 25  
 
 26  
 import java.util.List;
 27  
 
 28  
 
 29  
 /**
 30  
  * Accepts a proxied request from any other service.<P>Also accepts the request if there was no proxy (ie the user
 31  
  * directly authenticated against this service).</p>
 32  
  *
 33  
  * @author Ben Alex
 34  
  * @version $Id: AcceptAnyCasProxy.java 1496 2006-05-23 13:38:33Z benalex $
 35  
  */
 36  2
 public class AcceptAnyCasProxy implements CasProxyDecider {
 37  
     //~ Static fields/initializers =====================================================================================
 38  
 
 39  2
     private static final Log logger = LogFactory.getLog(AcceptAnyCasProxy.class);
 40  
 
 41  
     //~ Methods ========================================================================================================
 42  
 
 43  
     public void confirmProxyListTrusted(List proxyList)
 44  
         throws ProxyUntrustedException {
 45  2
         Assert.notNull(proxyList, "proxyList cannot be null");
 46  
 
 47  1
         if (logger.isDebugEnabled()) {
 48  0
             logger.debug("Always accepting proxy list: " + proxyList.toString());
 49  
         }
 50  1
     }
 51  
 }