* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace AcmePhp\Ssl; /** * Represent a SSL key-pair (public and private). * * @author Titouan Galopin */ class KeyPair { /** @var PublicKey */ private $publicKey; /** @var PrivateKey */ private $privateKey; public function __construct(PublicKey $publicKey, PrivateKey $privateKey) { $this->publicKey = $publicKey; $this->privateKey = $privateKey; } public function getPublicKey(): PublicKey { return $this->publicKey; } public function getPrivateKey(): PrivateKey { return $this->privateKey; } }