%PDF- %PDF-
Direktori : /www/old2/_music/diplomka/diplomka/src/API/libs/Nette/Security/ |
Current File : /www/old2/_music/diplomka/diplomka/src/API/libs/Nette/Security/IAuthenticator.php |
<?php /** * This file is part of the Nette Framework (http://nette.org) * * Copyright (c) 2004 David Grudl (http://davidgrudl.com) * * For the full copyright and license information, please view * the file license.txt that was distributed with this source code. */ namespace Nette\Security; use Nette; /** * Performs authentication. * * @author David Grudl */ interface IAuthenticator { /** Credential key */ const USERNAME = 0, PASSWORD = 1; /** Exception error code */ const IDENTITY_NOT_FOUND = 1, INVALID_CREDENTIAL = 2, FAILURE = 3, NOT_APPROVED = 4; /** * Performs an authentication against e.g. database. * and returns IIdentity on success or throws AuthenticationException * @return IIdentity * @throws AuthenticationException */ function authenticate(array $credentials); }