2016-11-17 11:35:43 -05:00
|
|
|
<?php
|
2019-12-03 13:57:53 -05:00
|
|
|
|
2018-03-05 13:33:16 -05:00
|
|
|
declare(strict_types=1);
|
2019-12-03 13:57:53 -05:00
|
|
|
|
2016-11-17 11:35:43 -05:00
|
|
|
/**
|
2024-05-23 03:26:56 -04:00
|
|
|
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2016-11-17 11:35:43 -05:00
|
|
|
*/
|
|
|
|
|
namespace OC\Security\IdentityProof;
|
|
|
|
|
|
|
|
|
|
class Key {
|
2023-06-26 07:33:13 -04:00
|
|
|
public function __construct(
|
|
|
|
|
private string $publicKey,
|
|
|
|
|
private string $privateKey,
|
|
|
|
|
) {
|
2016-11-17 11:35:43 -05:00
|
|
|
}
|
|
|
|
|
|
2018-03-05 13:33:16 -05:00
|
|
|
public function getPrivate(): string {
|
2016-11-17 11:35:43 -05:00
|
|
|
return $this->privateKey;
|
|
|
|
|
}
|
|
|
|
|
|
2018-03-05 13:33:16 -05:00
|
|
|
public function getPublic(): string {
|
2016-11-17 11:35:43 -05:00
|
|
|
return $this->publicKey;
|
|
|
|
|
}
|
|
|
|
|
}
|