View Javadoc

1   /*
2    * Apache License
3    * Version 2.0, January 2004
4    * http://www.apache.org/licenses/
5    *
6    * Copyright 2008 by chenillekit.org
7    *
8    * Licensed under the Apache License, Version 2.0 (the "License");
9    * you may not use this file except in compliance with the License.
10   * You may obtain a copy of the License at
11   *
12   * http://www.apache.org/licenses/LICENSE-2.0
13   */
14  
15  package org.chenillekit.access.internal;
16  
17  import org.chenillekit.access.ChenilleKitAccessException;
18  import org.chenillekit.access.WebSessionUser;
19  import org.chenillekit.access.services.AuthenticationService;
20  
21  /**
22   * A simple no-op service used as a terminator for the authentication service chain
23   * when no other authenticator has validate user's credentials.
24   *
25   * @version $Id$
26   */
27  public class NoOpAuthenticationService implements AuthenticationService
28  {
29  
30  	/* (non-Javadoc)
31  	 * @see org.chenillekit.access.services.AuthenticationService#doAuthenticate(java.lang.String, java.lang.String)
32  	 */
33  	public WebSessionUser doAuthenticate(String userName, String password)
34  	{
35  //		throw new ChenilleKitAccessException("Unable to find a valid authentication service for " + userName);
36  		
37  		return null;
38  	}
39  
40  }