Interface X509Certificate.ExtensionHandler

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean onExtension​(byte[] oid, boolean isCritical, byte[] value)
      Override this method to process the certificate extension being parsed
    • Method Detail

      • 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:
        CertificateParser.parseCert(byte[], short, short, ParserHandler), CertificateParser.buildCert(byte[], short, short, ParserHandler)