save
This commit is contained in:
+42
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the Acme PHP project.
|
||||
*
|
||||
* (c) Titouan Galopin <galopintitouan@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace AcmePhp\Ssl;
|
||||
|
||||
/**
|
||||
* Contains data required to request a certificate.
|
||||
*
|
||||
* @author Jérémy Derussé <jeremy@derusse.com>
|
||||
*/
|
||||
class CertificateRequest
|
||||
{
|
||||
/** @var DistinguishedName */
|
||||
private $distinguishedName;
|
||||
|
||||
/** @var KeyPair */
|
||||
private $keyPair;
|
||||
|
||||
public function __construct(DistinguishedName $distinguishedName, KeyPair $keyPair)
|
||||
{
|
||||
$this->distinguishedName = $distinguishedName;
|
||||
$this->keyPair = $keyPair;
|
||||
}
|
||||
|
||||
public function getDistinguishedName(): DistinguishedName
|
||||
{
|
||||
return $this->distinguishedName;
|
||||
}
|
||||
|
||||
public function getKeyPair(): KeyPair
|
||||
{
|
||||
return $this->keyPair;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user