RelativeDistinguishedName.php 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. /**
  3. * RelativeDistinguishedName
  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. * RelativeDistinguishedName
  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 RelativeDistinguishedName
  30. {
  31. const MAP = [
  32. 'type' => ASN1::TYPE_SET,
  33. 'min' => 1,
  34. 'max' => -1,
  35. 'children' => AttributeTypeAndValue::MAP
  36. ];
  37. }