Interface X509Certificate.ExtensionHandler
- All Superinterfaces:
CertificateParser.ParserHandler
- Enclosing interface:
X509Certificate
ExtensionHandler is a specialized CertificateParser.ParserHandler that will be
triggered by the CertificateParser each time a certificate extension
is found.- Since:
- 3.1
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanonExtension(byte[] oid, boolean isCritical, byte[] value) Override this method to process the certificate extension being parsed
-
Method Details
-
onExtension
boolean onExtension(byte[] oid, boolean isCritical, byte[] value) Override this method to process the certificate extension being parsed- Parameters:
oid- a temporary read-only array view on the extension OID which is the DER-encoded OBJECT IDENTIFIER of the extension ID (i.e, the extnID)isCritical-trueif the extension is critical,falseotherwisevalue- a temporary read-only array view on the extension value. which is the DER-encoded OCTET STRING of the extension value (i.e., the extnValue)- Returns:
trueto inform the parser to keep the certificate extension to be able to use it to initialize a new Certificate instance- See Also:
-