ILIAS  release_8 Revision v8.24
class.ilAuthFrontendCredentials.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
25{
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}
setPassword(string $a_password)
Set password.
setUsername(string $a_name)
Set username.
setAuthMode(string $a_auth_mode)
Set auth mode.
Component logger with individual log levels by component id.
global $DIC
Definition: feed.php:28
Interface of auth credentials.