Interface X509Certificate.ExtensionHandler

All Superinterfaces:
CertificateParser.ParserHandler
Enclosing interface:
X509Certificate

public static interface X509Certificate.ExtensionHandler extends CertificateParser.ParserHandler
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 Type
    Method
    Description
    boolean
    onExtension(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 - true if the extension is critical, false otherwise
      value - 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:
      true to inform the parser to keep the certificate extension to be able to use it to initialize a new Certificate instance
      See Also: