Add KeyPair class to manage public and private keys
This commit is contained in:
parent
ee4aeecf22
commit
e3d9b2f3be
1 changed files with 25 additions and 0 deletions
25
src/Socialbox/Objects/KeyPair.php
Normal file
25
src/Socialbox/Objects/KeyPair.php
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Socialbox\Objects;
|
||||||
|
|
||||||
|
class KeyPair
|
||||||
|
{
|
||||||
|
private string $publicKey;
|
||||||
|
private string $privateKey;
|
||||||
|
|
||||||
|
public function __construct(string $publicKey, string $privateKey)
|
||||||
|
{
|
||||||
|
$this->publicKey = $publicKey;
|
||||||
|
$this->privateKey = $privateKey;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getPublicKey(): string
|
||||||
|
{
|
||||||
|
return $this->publicKey;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getPrivateKey(): string
|
||||||
|
{
|
||||||
|
return $this->privateKey;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue