RDNSequence.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /**
  3. * RDNSequence
  4. *
  5. * PHP version 5
  6. *
  7. * @category File
  8. * @package ASN1
  9. * @author Jim Wigginton <terrafrost@php.net>
  10. * @copyright 2016 Jim Wigginton
  11. * @license http://www.opensource.org/licenses/mit-license.html MIT License
  12. * @link http://phpseclib.sourceforge.net
  13. */
  14. namespace phpseclib\File\ASN1\Maps;
  15. use phpseclib\File\ASN1;
  16. /**
  17. * RDNSequence
  18. *
  19. * In practice, RDNs containing multiple name-value pairs (called "multivalued RDNs") are rare,
  20. * but they can be useful at times when either there is no unique attribute in the entry or you
  21. * want to ensure that the entry's DN contains some useful identifying information.
  22. *
  23. * - https://www.opends.org/wiki/page/DefinitionRelativeDistinguishedName
  24. *
  25. * @package ASN1
  26. * @author Jim Wigginton <terrafrost@php.net>
  27. * @access public
  28. */
  29. abstract class RDNSequence
  30. {
  31. const MAP = [
  32. 'type' => ASN1::TYPE_SEQUENCE,
  33. // RDNSequence does not define a min or a max, which means it doesn't have one
  34. 'min' => 0,
  35. 'max' => -1,
  36. 'children' => RelativeDistinguishedName::MAP
  37. ];
  38. }