Key.php 452 B

12345678910111213141516171819202122232425
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OC\Security\IdentityProof;
  8. class Key {
  9. public function __construct(
  10. private string $publicKey,
  11. private string $privateKey,
  12. ) {
  13. }
  14. public function getPrivate(): string {
  15. return $this->privateKey;
  16. }
  17. public function getPublic(): string {
  18. return $this->publicKey;
  19. }
  20. }