1 | <?php |
||
24 | class RoleAttributeValue extends AttributeValue |
||
25 | { |
||
26 | /** |
||
27 | * Issuing authority. |
||
28 | * |
||
29 | * @var GeneralNames $_roleAuthority |
||
30 | */ |
||
31 | protected $_roleAuthority; |
||
32 | |||
33 | /** |
||
34 | * Role name. |
||
35 | * |
||
36 | * @var GeneralName $_roleName |
||
37 | */ |
||
38 | protected $_roleName; |
||
39 | |||
40 | /** |
||
41 | * Constructor. |
||
42 | * |
||
43 | * @param GeneralName $name Role name |
||
44 | * @param GeneralNames|null $authority Issuing authority |
||
45 | */ |
||
46 | public function __construct(GeneralName $name, GeneralNames $authority = null) |
||
52 | |||
53 | /** |
||
54 | * Initialize from a role string. |
||
55 | * |
||
56 | * @param string $role_name Role name in URI format |
||
57 | * @param GeneralNames|null $authority Issuing authority |
||
58 | * @return self |
||
59 | */ |
||
60 | public static function fromString(string $role_name, GeneralNames $authority = null) |
||
64 | |||
65 | /** |
||
66 | * |
||
67 | * @param UnspecifiedType $el |
||
68 | * @return self |
||
69 | */ |
||
70 | public static function fromASN1(UnspecifiedType $el) |
||
86 | |||
87 | /** |
||
88 | * Check whether issuing authority is present. |
||
89 | * |
||
90 | * @return bool |
||
91 | */ |
||
92 | public function hasRoleAuthority(): bool |
||
96 | |||
97 | /** |
||
98 | * Get issuing authority. |
||
99 | * |
||
100 | * @throws \LogicException |
||
101 | * @return GeneralNames |
||
102 | */ |
||
103 | public function roleAuthority(): GeneralNames |
||
110 | |||
111 | /** |
||
112 | * Get role name. |
||
113 | * |
||
114 | * @return GeneralName |
||
115 | */ |
||
116 | public function roleName(): GeneralName |
||
120 | |||
121 | /** |
||
122 | * |
||
123 | * @see \X501\ASN1\AttributeValue\AttributeValue::toASN1() |
||
124 | * @return Sequence |
||
125 | */ |
||
126 | public function toASN1(): Sequence |
||
136 | |||
137 | /** |
||
138 | * |
||
139 | * @see \X501\ASN1\AttributeValue\AttributeValue::stringValue() |
||
140 | * @return string |
||
141 | */ |
||
142 | public function stringValue(): string |
||
146 | |||
147 | /** |
||
148 | * |
||
149 | * @see \X501\ASN1\AttributeValue\AttributeValue::equalityMatchingRule() |
||
150 | * @return BinaryMatch |
||
151 | */ |
||
152 | public function equalityMatchingRule(): BinaryMatch |
||
156 | |||
157 | /** |
||
158 | * |
||
159 | * @see \X501\ASN1\AttributeValue\AttributeValue::rfc2253String() |
||
160 | * @return string |
||
161 | */ |
||
162 | public function rfc2253String(): string |
||
166 | |||
167 | /** |
||
168 | * |
||
169 | * @see \X501\ASN1\AttributeValue\AttributeValue::_transcodedString() |
||
170 | * @return string |
||
171 | */ |
||
172 | protected function _transcodedString(): string |
||
176 | } |
||
177 |