getAuthorizations() public method

Gets the authorizations URI.
public getAuthorizations ( ) : null | string
return null | string URI to retrieve authorizations or null
Beispiel #1
0
 public function getCertificates(Registration $registration)
 {
     /** @var Response $response */
     $response = $this->acmeClient->post($registration->getAuthorizations(), ["resource" => AcmeResource::REGISTRATION]);
     if ($response->getStatus() !== 200) {
         throw new AcmeException("Invalid response code: " . $response->getStatus() . "\n" . $response->getBody());
     }
     return json_decode($response->getBody());
 }