Development

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

You must first sign up to be able to contribute.

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

Revision 7791, 1.7 kB (checked in by fabien, 7 years ago)

updated Sean Kerr email address

  • Property svn:mime-type set to text/x-php
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id Rev Date
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 data.
27    *
28    * @return void
29    */
30   public function addCredential($credential);
31
32   /**
33    * Clear all credentials associated with this user.
34    *
35    * @return void
36    */
37   public function clearCredentials();
38
39   /**
40    * Indicates whether or not this user has a credential.
41    *
42    * @param mixed Credential data.
43    *
44    * @return bool true, if this user has the credential, otherwise false.
45    */
46   public function hasCredential($credential);
47
48   /**
49    * Indicates whether or not this user is authenticated.
50    *
51    * @return bool true, if this user is authenticated, otherwise false.
52    */
53   public function isAuthenticated();
54
55   /**
56    * Remove a credential from this user.
57    *
58    * @param mixed Credential data.
59    *
60    * @return void
61    */
62   public function removeCredential($credential);
63
64   /**
65    * Set the authenticated status of this user.
66    *
67    * @param bool A flag indicating the authenticated status of this user.
68    *
69    * @return void
70    */
71   public function setAuthenticated($authenticated);
72 }
73
Note: See TracBrowser for help on using the browser.