ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 setUsername($a_name)
41 {
42 $this->getLogger()->debug('Username: "'.$a_name.'"');
43 $this->username = trim($a_name);
44 }
45
49 public function getUsername()
50 {
51 return $this->username;
52 }
53
58 public function setPassword($a_password)
59 {
60 $this->password = $a_password;
61 }
62
66 public function getPassword()
67 {
68 return $this->password;
69 }
70
71
76 public function setCaptchaCode($a_code)
77 {
78 $this->captcha = $a_code;
79 }
80
84 public function getCaptchaCode()
85 {
86 return $this->captcha;
87 }
88
89
94 public function setAuthMode($a_auth_mode)
95 {
96 $this->auth_mode = $a_auth_mode;
97 }
98
102 public function getAuthMode()
103 {
104 return $this->auth_mode;
105 }
106}
107?>
An exception for terminatinating execution or to throw for unit testing.
setCaptchaCode($a_code)
Set captcha code.
setAuthMode($a_auth_mode)
Set auth mode.
static getLogger($a_component_id)
Get component logger.
Interface of auth credentials.