mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-06 13:34:25 +02:00
- remove Storable inheritance from User and make it a plain DAO - remove Authorization methods from User refs #4265 refs #4250
50 lines
865 B
PHP
50 lines
865 B
PHP
<?php
|
|
|
|
namespace Icinga\Authentication;
|
|
|
|
|
|
class Credentials
|
|
{
|
|
protected $username;
|
|
protected $password;
|
|
protected $domain;
|
|
|
|
|
|
public function __construct($username = "", $password = null, $domain = null)
|
|
{
|
|
$this->username = $username;
|
|
$this->password = $password;
|
|
$this->domain = $domain;
|
|
}
|
|
|
|
public function getUsername()
|
|
{
|
|
return $this->username;
|
|
}
|
|
|
|
public function setUsername($username)
|
|
{
|
|
return $this->username = $username;
|
|
}
|
|
|
|
public function getPassword()
|
|
{
|
|
return $this->password;
|
|
}
|
|
|
|
public function setPassword($password)
|
|
{
|
|
return $this->password = $password;
|
|
}
|
|
|
|
public function getDomain()
|
|
{
|
|
return $this->domain;
|
|
}
|
|
|
|
public function setDomain($domain)
|
|
{
|
|
return $this->domain = $domain;
|
|
}
|
|
}
|