@@ 109-119 (lines=11) @@ | ||
106 | return $this->_excluded; |
|
107 | } |
|
108 | ||
109 | protected function _valueASN1() { |
|
110 | $elements = array(); |
|
111 | if (isset($this->_permitted)) { |
|
112 | $elements[] = new ImplicitlyTaggedType(0, |
|
113 | $this->_permitted->toASN1()); |
|
114 | } |
|
115 | if (isset($this->_excluded)) { |
|
116 | $elements[] = new ImplicitlyTaggedType(1, $this->_excluded->toASN1()); |
|
117 | } |
|
118 | return new Sequence(...$elements); |
|
119 | } |
|
120 | } |
|
121 |
@@ 120-128 (lines=9) @@ | ||
117 | * @see \X501\ASN1\AttributeValue\AttributeValue::toASN1() |
|
118 | * @return Sequence |
|
119 | */ |
|
120 | public function toASN1() { |
|
121 | $elements = array(); |
|
122 | if (isset($this->_roleAuthority)) { |
|
123 | $elements[] = new ImplicitlyTaggedType(0, |
|
124 | $this->_roleAuthority->toASN1()); |
|
125 | } |
|
126 | $elements[] = new ExplicitlyTaggedType(1, $this->_roleName->toASN1()); |
|
127 | return new Sequence(...$elements); |
|
128 | } |
|
129 | ||
130 | /** |
|
131 | * |