ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
class.ilAuthFrontendCredentials.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 {
23  protected ilLogger $logger;
24  private string $username = '';
25  private string $password = '';
26  private string $auth_mode = '';
27 
28  public function __construct()
29  {
30  global $DIC;
31  $this->logger = $DIC->logger()->auth();
32  }
33 
34  public function setUsername(string $a_name): void
35  {
36  $this->logger->debug('Username: "' . $a_name . '"');
37  $this->username = trim($a_name);
38  }
39 
40  public function getUsername(): string
41  {
42  return $this->username;
43  }
44 
45  public function setPassword(string $a_password): void
46  {
47  $this->password = $a_password;
48  }
49 
50  public function getPassword(): string
51  {
52  return $this->password;
53  }
54 
55  public function setAuthMode(string $a_auth_mode): void
56  {
57  $this->auth_mode = $a_auth_mode;
58  }
59 
60  public function getAuthMode(): string
61  {
62  return $this->auth_mode;
63  }
64 }
global $DIC
Definition: shib_login.php:26