Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 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: sfSecurityUser.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
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
}