/** * AuthFileSecurity * 31.07.2012 * @author Philipp Haussleiter * */ package controllers; import java.util.Map; import play.modules.fileauth.FileAuth; /** * This Class provides basice Security Functions for the Play! Security Plugin. * @author Philipp Haußleiter *
* Usage: * @With(Secure.class) * public class Application extends Controller { * ... * } * *
*/ public class AuthFileSecurity extends Secure.Security { /** * Authentify an user against the given AuthFile. * @param username the given username. * @param password the given password. * @return true if username and password matches, otherwise false. */ public static boolean authentify(String username, String password) { Map