1<?php 2/** 3 * @copyright 2016 Christoph Wurst <christoph@winzerhof-wurst.at> 4 * 5 * @author Christoph Wurst <christoph@winzerhof-wurst.at> 6 * 7 * @license GNU AGPL version 3 or any later version 8 * 9 * This program is free software: you can redistribute it and/or modify 10 * it under the terms of the GNU Affero General Public License as 11 * published by the Free Software Foundation, either version 3 of the 12 * License, or (at your option) any later version. 13 * 14 * This program is distributed in the hope that it will be useful, 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 * GNU Affero General Public License for more details. 18 * 19 * You should have received a copy of the GNU Affero General Public License 20 * along with this program. If not, see <http://www.gnu.org/licenses/>. 21 * 22 */ 23namespace OC\Authentication\LoginCredentials; 24 25use OCP\Authentication\LoginCredentials\ICredentials; 26 27class Credentials implements ICredentials { 28 29 /** @var string */ 30 private $uid; 31 32 /** @var string */ 33 private $loginName; 34 35 /** @var string */ 36 private $password; 37 38 /** 39 * @param string $uid 40 * @param string $loginName 41 * @param string $password 42 */ 43 public function __construct($uid, $loginName, $password) { 44 $this->uid = $uid; 45 $this->loginName = $loginName; 46 $this->password = $password; 47 } 48 49 /** 50 * @return string 51 */ 52 public function getUID() { 53 return $this->uid; 54 } 55 56 /** 57 * @return string 58 */ 59 public function getLoginName() { 60 return $this->loginName; 61 } 62 63 /** 64 * @return string 65 */ 66 public function getPassword() { 67 return $this->password; 68 } 69} 70