Subversion Repositories oidplus

Rev

Rev 874 | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. <?php
  2.  
  3. /**
  4.  * RDNSequence
  5.  *
  6.  * PHP version 5
  7.  *
  8.  * @author    Jim Wigginton <terrafrost@php.net>
  9.  * @copyright 2016 Jim Wigginton
  10.  * @license   http://www.opensource.org/licenses/mit-license.html  MIT License
  11.  * @link      http://phpseclib.sourceforge.net
  12.  */
  13.  
  14. namespace phpseclib3\File\ASN1\Maps;
  15.  
  16. use phpseclib3\File\ASN1;
  17.  
  18. /**
  19.  * RDNSequence
  20.  *
  21.  * In practice, RDNs containing multiple name-value pairs (called "multivalued RDNs") are rare,
  22.  * but they can be useful at times when either there is no unique attribute in the entry or you
  23.  * want to ensure that the entry's DN contains some useful identifying information.
  24.  *
  25.  * - https://www.opends.org/wiki/page/DefinitionRelativeDistinguishedName
  26.  *
  27.  * @author  Jim Wigginton <terrafrost@php.net>
  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. }
  39.