Credentials.php 907 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-License-Identifier: AGPL-3.0-or-later
  5. */
  6. namespace OC\Authentication\LoginCredentials;
  7. use OCP\Authentication\LoginCredentials\ICredentials;
  8. class Credentials implements ICredentials {
  9. /** @var string */
  10. private $uid;
  11. /** @var string */
  12. private $loginName;
  13. /** @var string */
  14. private $password;
  15. /**
  16. * @param string $uid
  17. * @param string $loginName
  18. * @param string $password
  19. */
  20. public function __construct($uid, $loginName, $password) {
  21. $this->uid = $uid;
  22. $this->loginName = $loginName;
  23. $this->password = $password;
  24. }
  25. /**
  26. * @return string
  27. */
  28. public function getUID() {
  29. return $this->uid;
  30. }
  31. /**
  32. * @return string
  33. */
  34. public function getLoginName() {
  35. return $this->loginName;
  36. }
  37. /**
  38. * @return string
  39. */
  40. public function getPassword() {
  41. return $this->password;
  42. }
  43. }