AuthenticationManager.java :  » XML » ouroboroswiki » com » ouroboroswiki » core » Java Open Source

Java Open Source » XML » ouroboroswiki 
ouroboroswiki » com » ouroboroswiki » core » AuthenticationManager.java
package com.ouroboroswiki.core;

public interface AuthenticationManager {
  
  /**
   * Authenticates a username/password
   * @param username the unique user name
   * @param password the secret credentials
   * @return the principal if the authentication is successful, null if it is invalid
   * @throws AuthenticationException if the authentication could not be checked
   */
  Object authenticate( String username, String password ) throws AuthenticationException;
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.