ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilAuthFrontendCredentials.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2010 ILIAS open source, Extended GPL, see docs/LICENSE */
4
5include_once './Services/Authentication/interfaces/interface.ilAuthCredentials.php';
6
14{
15 private $logger = null;
16
17 private $username = '';
18 private $password = '';
19 private $captcha = '';
20 private $auth_mode = '';
21
22 public function __construct()
23 {
24 $this->logger = ilLoggerFactory::getLogger('auth');
25 }
26
31 public function getLogger()
32 {
33 return $this->logger;
34 }
35
40 public function setLogger(ilLogger $logger)
41 {
42 $this->logger = $logger;
43 }
44
49 public function setUsername($a_name)
50 {
51 $this->getLogger()->debug('Username: "' . $a_name . '"');
52 $this->username = trim($a_name);
53 }
54
58 public function getUsername()
59 {
60 return $this->username;
61 }
62
67 public function setPassword($a_password)
68 {
69 $this->password = $a_password;
70 }
71
75 public function getPassword()
76 {
77 return $this->password;
78 }
79
80
85 public function setCaptchaCode($a_code)
86 {
87 $this->captcha = $a_code;
88 }
89
93 public function getCaptchaCode()
94 {
95 return $this->captcha;
96 }
97
98
103 public function setAuthMode($a_auth_mode)
104 {
105 $this->auth_mode = $a_auth_mode;
106 }
107
111 public function getAuthMode()
112 {
113 return $this->auth_mode;
114 }
115}
An exception for terminatinating execution or to throw for unit testing.
setCaptchaCode($a_code)
Set captcha code.
setLogger(ilLogger $logger)
Set Logger.
setAuthMode($a_auth_mode)
Set auth mode.
static getLogger($a_component_id)
Get component logger.
Component logger with individual log levels by component id.
Interface of auth credentials.