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