1   /*
2    * $Id: MockSecurityProvider.java 11517 2008-03-31 21:34:19Z dirk.olmes $
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.security;
12  
13  import org.mule.api.lifecycle.InitialisationException;
14  import org.mule.api.security.Authentication;
15  import org.mule.api.security.SecurityContext;
16  import org.mule.api.security.SecurityProvider;
17  import org.mule.api.security.UnknownAuthenticationTypeException;
18  
19  /**
20   * Empty mock for test
21   */
22  public class MockSecurityProvider extends Named implements SecurityProvider
23  {
24  
25      public Authentication authenticate(Authentication authentication) throws org.mule.api.security.SecurityException
26      {
27          return null;
28      }
29  
30      public boolean supports(Class aClass)
31      {
32          return false;
33      }
34  
35      public SecurityContext createSecurityContext(Authentication auth) throws UnknownAuthenticationTypeException
36      {
37          return null;
38      }
39  
40      public void initialise() throws InitialisationException
41      {
42          // nothing to do
43      }
44  
45  }