1 | <?php
|
---|
2 | /*
|
---|
3 | * Copyright 2014 Google Inc.
|
---|
4 | *
|
---|
5 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
---|
6 | * use this file except in compliance with the License. You may obtain a copy of
|
---|
7 | * the License at
|
---|
8 | *
|
---|
9 | * http://www.apache.org/licenses/LICENSE-2.0
|
---|
10 | *
|
---|
11 | * Unless required by applicable law or agreed to in writing, software
|
---|
12 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
---|
13 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
---|
14 | * License for the specific language governing permissions and limitations under
|
---|
15 | * the License.
|
---|
16 | */
|
---|
17 |
|
---|
18 | namespace Google\Service\CertificateAuthorityService;
|
---|
19 |
|
---|
20 | class X509Parameters extends \Google\Collection
|
---|
21 | {
|
---|
22 | protected $collection_key = 'policyIds';
|
---|
23 | protected $additionalExtensionsType = X509Extension::class;
|
---|
24 | protected $additionalExtensionsDataType = 'array';
|
---|
25 | /**
|
---|
26 | * @var string[]
|
---|
27 | */
|
---|
28 | public $aiaOcspServers;
|
---|
29 | protected $caOptionsType = CaOptions::class;
|
---|
30 | protected $caOptionsDataType = '';
|
---|
31 | protected $keyUsageType = KeyUsage::class;
|
---|
32 | protected $keyUsageDataType = '';
|
---|
33 | protected $nameConstraintsType = NameConstraints::class;
|
---|
34 | protected $nameConstraintsDataType = '';
|
---|
35 | protected $policyIdsType = ObjectId::class;
|
---|
36 | protected $policyIdsDataType = 'array';
|
---|
37 |
|
---|
38 | /**
|
---|
39 | * @param X509Extension[]
|
---|
40 | */
|
---|
41 | public function setAdditionalExtensions($additionalExtensions)
|
---|
42 | {
|
---|
43 | $this->additionalExtensions = $additionalExtensions;
|
---|
44 | }
|
---|
45 | /**
|
---|
46 | * @return X509Extension[]
|
---|
47 | */
|
---|
48 | public function getAdditionalExtensions()
|
---|
49 | {
|
---|
50 | return $this->additionalExtensions;
|
---|
51 | }
|
---|
52 | /**
|
---|
53 | * @param string[]
|
---|
54 | */
|
---|
55 | public function setAiaOcspServers($aiaOcspServers)
|
---|
56 | {
|
---|
57 | $this->aiaOcspServers = $aiaOcspServers;
|
---|
58 | }
|
---|
59 | /**
|
---|
60 | * @return string[]
|
---|
61 | */
|
---|
62 | public function getAiaOcspServers()
|
---|
63 | {
|
---|
64 | return $this->aiaOcspServers;
|
---|
65 | }
|
---|
66 | /**
|
---|
67 | * @param CaOptions
|
---|
68 | */
|
---|
69 | public function setCaOptions(CaOptions $caOptions)
|
---|
70 | {
|
---|
71 | $this->caOptions = $caOptions;
|
---|
72 | }
|
---|
73 | /**
|
---|
74 | * @return CaOptions
|
---|
75 | */
|
---|
76 | public function getCaOptions()
|
---|
77 | {
|
---|
78 | return $this->caOptions;
|
---|
79 | }
|
---|
80 | /**
|
---|
81 | * @param KeyUsage
|
---|
82 | */
|
---|
83 | public function setKeyUsage(KeyUsage $keyUsage)
|
---|
84 | {
|
---|
85 | $this->keyUsage = $keyUsage;
|
---|
86 | }
|
---|
87 | /**
|
---|
88 | * @return KeyUsage
|
---|
89 | */
|
---|
90 | public function getKeyUsage()
|
---|
91 | {
|
---|
92 | return $this->keyUsage;
|
---|
93 | }
|
---|
94 | /**
|
---|
95 | * @param NameConstraints
|
---|
96 | */
|
---|
97 | public function setNameConstraints(NameConstraints $nameConstraints)
|
---|
98 | {
|
---|
99 | $this->nameConstraints = $nameConstraints;
|
---|
100 | }
|
---|
101 | /**
|
---|
102 | * @return NameConstraints
|
---|
103 | */
|
---|
104 | public function getNameConstraints()
|
---|
105 | {
|
---|
106 | return $this->nameConstraints;
|
---|
107 | }
|
---|
108 | /**
|
---|
109 | * @param ObjectId[]
|
---|
110 | */
|
---|
111 | public function setPolicyIds($policyIds)
|
---|
112 | {
|
---|
113 | $this->policyIds = $policyIds;
|
---|
114 | }
|
---|
115 | /**
|
---|
116 | * @return ObjectId[]
|
---|
117 | */
|
---|
118 | public function getPolicyIds()
|
---|
119 | {
|
---|
120 | return $this->policyIds;
|
---|
121 | }
|
---|
122 | }
|
---|
123 |
|
---|
124 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
125 | class_alias(X509Parameters::class, 'Google_Service_CertificateAuthorityService_X509Parameters');
|
---|