ILIAS  trunk Revision v11.0_alpha-1753-gb21ca8c4367
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.ilAuthFrontendCredentials.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
25 {
26  private ilLogger $logger;
27 
28  private string $username = '';
29  private string $password = '';
30  private string $auth_mode = '';
31 
32  public function __construct()
33  {
34  global $DIC;
35  $this->logger = $DIC->logger()->auth();
36  }
37 
41  public function setUsername(string $a_name): void
42  {
43  $this->logger->debug('Username: "' . $a_name . '"');
44  $this->username = trim($a_name);
45  }
46 
50  public function getUsername(): string
51  {
52  return $this->username;
53  }
54 
58  public function setPassword(string $a_password): void
59  {
60  $this->password = $a_password;
61  }
62 
66  public function getPassword(): string
67  {
68  return $this->password;
69  }
70 
74  public function setAuthMode(string $a_auth_mode): void
75  {
76  $this->auth_mode = $a_auth_mode;
77  }
78 
82  public function getAuthMode(): string
83  {
84  return $this->auth_mode;
85  }
86 }
Interface of auth credentials.
setAuthMode(string $a_auth_mode)
Set auth mode.
setPassword(string $a_password)
Set password.
global $DIC
Definition: shib_login.php:22
setUsername(string $a_name)
Set username.