PHP Интерфейс AcmePhp\Cli\Repository\RepositoryInterface

Автор: Titouan Galopin ([email protected])
Показать файл Открыть проект Примеры использования интерфейса

Открытые методы

Метод Описание
hasAccountKeyPair ( ) : boolean Check if there is an account key pair in the repository.
hasDomainAuthorizationChallenge ( string $domain ) : boolean Check if there is an authorization challenge associated to the given domain in the repository.
hasDomainCertificate ( string $domain ) : boolean Check if there is a certificate associated to the given domain in the repository.
hasDomainDistinguishedName ( string $domain ) : boolean Check if there is a distinguished name associated to the given domain in the repository.
hasDomainKeyPair ( string $domain ) : boolean Check if there is a key pair associated to the given domain in the repository.
loadAccountKeyPair ( ) : KeyPair Load the account key pair.
loadDomainAuthorizationChallenge ( string $domain ) : AcmePhp\Core\Protocol\AuthorizationChallenge Load the authorization challenge associated to a given domain.
loadDomainCertificate ( string $domain ) : Certificate Load the certificate associated to a given domain.
loadDomainDistinguishedName ( string $domain ) : DistinguishedName Load the distinguished name associated to a given domain.
loadDomainKeyPair ( string $domain ) : KeyPair Load the key pair associated to a given domain.
save ( string $path, string $content, string $visibility = self::VISIBILITY_PRIVATE ) Save a given string into a given path handling backup.
storeAccountKeyPair ( KeyPair $keyPair ) : void Store a given key pair as the account key pair (the global key pair used to interact with the ACME server).
storeCertificateResponse ( CertificateResponse $certificateResponse ) : void Extract important elements from the given certificate response and store them in the repository.
storeDomainAuthorizationChallenge ( string $domain, AcmePhp\Core\Protocol\AuthorizationChallenge $authorizationChallenge ) : void Store a given authorization challenge as associated to a given domain.
storeDomainCertificate ( string $domain, Certificate $certificate ) : void Store a given certificate as associated to a given domain.
storeDomainDistinguishedName ( string $domain, DistinguishedName $distinguishedName ) : void Store a given distinguished name as associated to a given domain.
storeDomainKeyPair ( string $domain, KeyPair $keyPair ) : void Store a given key pair as associated to a given domain.

Описание методов

hasAccountKeyPair() публичный Метод

Check if there is an account key pair in the repository.
public hasAccountKeyPair ( ) : boolean
Результат boolean

hasDomainAuthorizationChallenge() публичный Метод

Check if there is an authorization challenge associated to the given domain in the repository.
public hasDomainAuthorizationChallenge ( string $domain ) : boolean
$domain string
Результат boolean

hasDomainCertificate() публичный Метод

Check if there is a certificate associated to the given domain in the repository.
public hasDomainCertificate ( string $domain ) : boolean
$domain string
Результат boolean

hasDomainDistinguishedName() публичный Метод

Check if there is a distinguished name associated to the given domain in the repository.
public hasDomainDistinguishedName ( string $domain ) : boolean
$domain string
Результат boolean

hasDomainKeyPair() публичный Метод

Check if there is a key pair associated to the given domain in the repository.
public hasDomainKeyPair ( string $domain ) : boolean
$domain string
Результат boolean

loadAccountKeyPair() публичный Метод

Load the account key pair.
public loadAccountKeyPair ( ) : KeyPair
Результат AcmePhp\Ssl\KeyPair

loadDomainAuthorizationChallenge() публичный Метод

Load the authorization challenge associated to a given domain.
public loadDomainAuthorizationChallenge ( string $domain ) : AcmePhp\Core\Protocol\AuthorizationChallenge
$domain string
Результат AcmePhp\Core\Protocol\AuthorizationChallenge

loadDomainCertificate() публичный Метод

Load the certificate associated to a given domain.
public loadDomainCertificate ( string $domain ) : Certificate
$domain string
Результат AcmePhp\Ssl\Certificate

loadDomainDistinguishedName() публичный Метод

Load the distinguished name associated to a given domain.
public loadDomainDistinguishedName ( string $domain ) : DistinguishedName
$domain string
Результат AcmePhp\Ssl\DistinguishedName

loadDomainKeyPair() публичный Метод

Load the key pair associated to a given domain.
public loadDomainKeyPair ( string $domain ) : KeyPair
$domain string
Результат AcmePhp\Ssl\KeyPair

save() публичный Метод

Save a given string into a given path handling backup.
public save ( string $path, string $content, string $visibility = self::VISIBILITY_PRIVATE )
$path string
$content string
$visibility string The visibilty to use for this file.

storeAccountKeyPair() публичный Метод

Store a given key pair as the account key pair (the global key pair used to interact with the ACME server).
public storeAccountKeyPair ( KeyPair $keyPair ) : void
$keyPair AcmePhp\Ssl\KeyPair
Результат void

storeCertificateResponse() публичный Метод

This method will use the distinguished name common name as a domain to store: - the key pair - the certificate request - the certificate
public storeCertificateResponse ( CertificateResponse $certificateResponse ) : void
$certificateResponse AcmePhp\Ssl\CertificateResponse
Результат void

storeDomainAuthorizationChallenge() публичный Метод

Store a given authorization challenge as associated to a given domain.
public storeDomainAuthorizationChallenge ( string $domain, AcmePhp\Core\Protocol\AuthorizationChallenge $authorizationChallenge ) : void
$domain string
$authorizationChallenge AcmePhp\Core\Protocol\AuthorizationChallenge
Результат void

storeDomainCertificate() публичный Метод

Store a given certificate as associated to a given domain.
public storeDomainCertificate ( string $domain, Certificate $certificate ) : void
$domain string
$certificate AcmePhp\Ssl\Certificate
Результат void

storeDomainDistinguishedName() публичный Метод

Store a given distinguished name as associated to a given domain.
public storeDomainDistinguishedName ( string $domain, DistinguishedName $distinguishedName ) : void
$domain string
$distinguishedName AcmePhp\Ssl\DistinguishedName
Результат void

storeDomainKeyPair() публичный Метод

Store a given key pair as associated to a given domain.
public storeDomainKeyPair ( string $domain, KeyPair $keyPair ) : void
$domain string
$keyPair AcmePhp\Ssl\KeyPair
Результат void