summaryrefslogtreecommitdiffstats
path: root/library/Icinga/Authentication/User/UserBackendInterface.php
blob: 4660eb079a169c2ad376f9145822da7ff54118f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
/* Icinga Web 2 | (c) 2015 Icinga Development Team | GPLv2+ */

namespace Icinga\Authentication\User;

use Icinga\Authentication\Authenticatable;
use Icinga\User;

/**
 * Interface for user backends
 */
interface UserBackendInterface extends Authenticatable
{
    /**
     * Set this backend's name
     *
     * @param   string  $name
     *
     * @return  $this
     */
    public function setName($name);

    /**
     * Return this backend's name
     *
     * @return  string
     */
    public function getName();

    /**
     * Return this backend's configuration form class path
     *
     * This is not part of the interface to not break existing implementations.
     * If you need a custom backend form, implement this method.
     *
     * @return  string
     */
    //public static function getConfigurationFormClass();
}