135 * }
136 * }
137 * }</pre>
138 *
139 * @return a Set (or an empty Set if none are marked non-critical) of
140 * the extension OID strings for extensions that are marked non-critical.
141 * If there are no extensions present at all, then this method returns
142 * null.
143 */
144 public Set<String> getNonCriticalExtensionOIDs();
145
146 /**
147 * Gets the DER-encoded OCTET string for the extension value
148 * (<em>extnValue</em>) identified by the passed-in {@code oid}
149 * String.
150 * The {@code oid} string is
151 * represented by a set of nonnegative whole numbers separated
152 * by periods.
153 *
154 * <p>For example:<br>
155 * <table border=groove summary="Examples of OIDs and extension names">
156 * <tr>
157 * <th>OID <em>(Object Identifier)</em></th>
158 * <th>Extension Name</th></tr>
159 * <tr><td>2.5.29.14</td>
160 * <td>SubjectKeyIdentifier</td></tr>
161 * <tr><td>2.5.29.15</td>
162 * <td>KeyUsage</td></tr>
163 * <tr><td>2.5.29.16</td>
164 * <td>PrivateKeyUsage</td></tr>
165 * <tr><td>2.5.29.17</td>
166 * <td>SubjectAlternativeName</td></tr>
167 * <tr><td>2.5.29.18</td>
168 * <td>IssuerAlternativeName</td></tr>
169 * <tr><td>2.5.29.19</td>
170 * <td>BasicConstraints</td></tr>
171 * <tr><td>2.5.29.30</td>
172 * <td>NameConstraints</td></tr>
173 * <tr><td>2.5.29.33</td>
174 * <td>PolicyMappings</td></tr>
175 * <tr><td>2.5.29.35</td>
176 * <td>AuthorityKeyIdentifier</td></tr>
177 * <tr><td>2.5.29.36</td>
178 * <td>PolicyConstraints</td></tr>
179 * </table>
180 *
181 * @param oid the Object Identifier value for the extension.
182 * @return the DER-encoded octet string of the extension value or
183 * null if it is not present.
184 */
185 public byte[] getExtensionValue(String oid);
186 }
|
135 * }
136 * }
137 * }</pre>
138 *
139 * @return a Set (or an empty Set if none are marked non-critical) of
140 * the extension OID strings for extensions that are marked non-critical.
141 * If there are no extensions present at all, then this method returns
142 * null.
143 */
144 public Set<String> getNonCriticalExtensionOIDs();
145
146 /**
147 * Gets the DER-encoded OCTET string for the extension value
148 * (<em>extnValue</em>) identified by the passed-in {@code oid}
149 * String.
150 * The {@code oid} string is
151 * represented by a set of nonnegative whole numbers separated
152 * by periods.
153 *
154 * <p>For example:<br>
155 * <table class="plain">
156 * <caption style="display:none">Examples of OIDs and extension names</caption>
157 * <thead>
158 * <tr>
159 * <th>OID <em>(Object Identifier)</em></th>
160 * <th>Extension Name</th></tr>
161 * </thead>
162 * <tbody>
163 * <tr><td>2.5.29.14</td>
164 * <td>SubjectKeyIdentifier</td></tr>
165 * <tr><td>2.5.29.15</td>
166 * <td>KeyUsage</td></tr>
167 * <tr><td>2.5.29.16</td>
168 * <td>PrivateKeyUsage</td></tr>
169 * <tr><td>2.5.29.17</td>
170 * <td>SubjectAlternativeName</td></tr>
171 * <tr><td>2.5.29.18</td>
172 * <td>IssuerAlternativeName</td></tr>
173 * <tr><td>2.5.29.19</td>
174 * <td>BasicConstraints</td></tr>
175 * <tr><td>2.5.29.30</td>
176 * <td>NameConstraints</td></tr>
177 * <tr><td>2.5.29.33</td>
178 * <td>PolicyMappings</td></tr>
179 * <tr><td>2.5.29.35</td>
180 * <td>AuthorityKeyIdentifier</td></tr>
181 * <tr><td>2.5.29.36</td>
182 * <td>PolicyConstraints</td></tr>
183 * </tbody>
184 * </table>
185 *
186 * @param oid the Object Identifier value for the extension.
187 * @return the DER-encoded octet string of the extension value or
188 * null if it is not present.
189 */
190 public byte[] getExtensionValue(String oid);
191 }
|