Development

/branches/1.3/lib/user/sfSecurityUser.class.php

You must first sign up to be able to contribute.

root/branches/1.3/lib/user/sfSecurityUser.class.php

Revision 23810, 1.6 kB (checked in by Kris.Wallsmith, 4 years ago)

[1.3] set svn:eol-style property to native and svn:keywords property to Id on all .php files

  • Property svn:mime-type set to text/x-php
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
Line 
1 <?php
2
3 /*
4  * This file is part of the symfony package.
5  * (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com>
6  * (c) 2004-2006 Sean Kerr <sean@code-box.org>
7  *
8  * For the full copyright and license information, please view the LICENSE
9  * file that was distributed with this source code.
10  */
11
12 /**
13  * sfSecurityUser interface provides advanced security manipulation methods.
14  *
15  * @package    symfony
16  * @subpackage user
17  * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
18  * @author     Sean Kerr <sean@code-box.org>
19  * @version    SVN: $Id$
20  */
21 interface sfSecurityUser
22 {
23   /**
24    * Add a credential to this user.
25    *
26    * @param mixed $credential Credential data.
27    */
28   public function addCredential($credential);
29
30   /**
31    * Clear all credentials associated with this user.
32    */
33   public function clearCredentials();
34
35   /**
36    * Indicates whether or not this user has a credential.
37    *
38    * @param mixed $credential  Credential data.
39    *
40    * @return bool true, if this user has the credential, otherwise false.
41    */
42   public function hasCredential($credential);
43
44   /**
45    * Indicates whether or not this user is authenticated.
46    *
47    * @return bool true, if this user is authenticated, otherwise false.
48    */
49   public function isAuthenticated();
50
51   /**
52    * Remove a credential from this user.
53    *
54    * @param mixed $credential  Credential data.
55    */
56   public function removeCredential($credential);
57
58   /**
59    * Set the authenticated status of this user.
60    *
61    * @param bool $authenticated  A flag indicating the authenticated status of this user.
62    */
63   public function setAuthenticated($authenticated);
64 }
65
Note: See TracBrowser for help on using the browser.