1<?php
2
3/**
4 * BuiltInStandardAttributes
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 * BuiltInStandardAttributes
22 *
23 * @package ASN1
24 * @author  Jim Wigginton <terrafrost@php.net>
25 * @access  public
26 */
27abstract class BuiltInStandardAttributes
28{
29    const MAP = [
30        'type' => ASN1::TYPE_SEQUENCE,
31        'children' => [
32            'country-name' => ['optional' => true] + CountryName::MAP,
33            'administration-domain-name' => ['optional' => true] + AdministrationDomainName::MAP,
34            'network-address' => [
35                'constant' => 0,
36                'optional' => true,
37                'implicit' => true
38            ] + NetworkAddress::MAP,
39            'terminal-identifier' => [
40                'constant' => 1,
41                'optional' => true,
42                'implicit' => true
43            ] + TerminalIdentifier::MAP,
44            'private-domain-name' => [
45                'constant' => 2,
46                'optional' => true,
47                'explicit' => true
48            ] + PrivateDomainName::MAP,
49            'organization-name' => [
50                'constant' => 3,
51                'optional' => true,
52                'implicit' => true
53            ] + OrganizationName::MAP,
54            'numeric-user-identifier' => [
55                'constant' => 4,
56                'optional' => true,
57                'implicit' => true
58            ] + NumericUserIdentifier::MAP,
59            'personal-name' => [
60                'constant' => 5,
61                'optional' => true,
62                'implicit' => true
63            ] + PersonalName::MAP,
64            'organizational-unit-names' => [
65                'constant' => 6,
66                'optional' => true,
67                'implicit' => true
68            ] + OrganizationalUnitNames::MAP
69        ]
70    ];
71}
72