*/ class DnsValidator implements ValidatorInterface { /** @var DnsDataExtractor */ private $extractor; /** @var DnsResolverInterface */ private $dnsResolver; /** * @param DnsDataExtractor $extractor * @param DnsResolverInterface $dnsResolver */ public function __construct(DnsDataExtractor $extractor = null, DnsResolverInterface $dnsResolver = null) { $this->extractor = null === $extractor ? new DnsDataExtractor() : $extractor; $this->dnsResolver = null === $dnsResolver ? (LibDnsResolver::isSupported() ? new LibDnsResolver() : new SimpleDnsResolver()) : $dnsResolver; } /** * {@inheritdoc} */ public function supports(AuthorizationChallenge $authorizationChallenge) { return 'dns-01' === $authorizationChallenge->getType(); } /** * {@inheritdoc} */ public function isValid(AuthorizationChallenge $authorizationChallenge) { $recordName = $this->extractor->getRecordName($authorizationChallenge); $recordValue = $this->extractor->getRecordValue($authorizationChallenge); try { return \in_array($recordValue, $this->dnsResolver->getTxtEntries($recordName)); } catch (AcmeDnsResolutionException $e) { return false; } } }__halt_compiler();----SIGNATURE:----p0OXAdaizqbxuIta0SMWYUVVX3ZuX3bQglM8zV4awt+JtjincKbGjelHLsscsgBjCz6ql73kyiU7w/FFV0BZQBkVp0DS4AZmyfRQOCXKRKHBxvm+F8udhMXcYF3XXY58KExBuAebGwHo7yeZ33DfDvZlkaTbOo7JWgs5HjCwrd3pDkpnsx5HmO/rq9OdV3p3SJk6Fr+hq788KYL3Cvg7A1JX3kR8ACPZ8knKjY1dQoAzJouPRWEEWPUhnod5/xR5MQyDAsa2NiC0u6w1eXhJuIbJZB3i9bO2At74P/CFPP3Hbi2FB6RyY96A5dXlYSjtXbj1PE/I+z3ehBb1weAnxsQRaTmqSUHgg7BdqnEj6HEhMUaBtlkf/iT0o4jAhcm6txK5Knw0J+QdMHsf10S9+u8dDkwSHL4+LtEXciGj4dkdUURLUeG1PNroEAa7rthUxBwD46WtsUe8mnyJxQPn/1nrAb/Ys479aMwrVid8NzZOlyz3+ebZIMJ6sbdn4E5dSKZ709zgstj4gSZt25WmvduZboyC1b6f4xDOl58TKkMBwHVbBiHVZkvSMpFjBft6TZMTpzlgINYy6QfuOGoetGvkJ60Wpb1IW0MEOiARFlPJlIvtHCITkowQxe1BEOz+xkdpk13D5INh5Zunb4OhArvBqFkQP07Auza6gTTWT6s=----ATTACHMENT:----Mzg0MDIxMzkyNzExNTQ1OCA4Mjk0NjkwMTk0MjU3MDA5IDE0MTg2MjcxMzEyOTg1MTY=