DNSName.php 633 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /*
  3. * This file is part of the PHPASN1 library.
  4. *
  5. * Copyright © Friedrich Große <friedrich.grosse@gmail.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace FG\X509\SAN;
  11. use FG\ASN1\Universal\GeneralString;
  12. class DNSName extends GeneralString
  13. {
  14. const IDENTIFIER = 0x82; // not sure yet why this is the identifier used in SAN extensions
  15. public function __construct($dnsNameString)
  16. {
  17. parent::__construct($dnsNameString);
  18. }
  19. public function getType()
  20. {
  21. return self::IDENTIFIER;
  22. }
  23. }