storeDomainAuthorizationChallenge() 공개 메소드

public storeDomainAuthorizationChallenge ( $domain, AcmePhp\Core\Protocol\AuthorizationChallenge $authorizationChallenge )
$authorizationChallenge AcmePhp\Core\Protocol\AuthorizationChallenge
예제 #1
0
 public function testLoadDomainAuthorizationChallenge()
 {
     $challenge = new AuthorizationChallenge('example.org', 'http-01', 'https://acme-v01.api.letsencrypt.org/acme/challenge/bzHDB1T3ssGlGEfK_j-sTsCz6eayLww_Eb56wQpEtCk/124845837', 'wJDbK9uuuz56O6z_dhMFStHQf4JnEYU9A8WJi7lS8MA', 'wJDbK9uuuz56O6z_dhMFStHQf4JnEYU9A8WJi7lS8MA.zUny8k33uiaGcQMz8rGcWJnnbuLwTCpbNc7luaPyDgY');
     $this->assertFalse($this->repository->hasDomainAuthorizationChallenge('example.com'));
     $this->repository->storeDomainAuthorizationChallenge('example.com', $challenge);
     $this->assertTrue($this->repository->hasDomainAuthorizationChallenge('example.com'));
     $this->assertEquals($challenge, $this->repository->loadDomainAuthorizationChallenge('example.com'));
 }