Package javacardx.security.cert
Interface X509Certificate.ExtensionHandler
-
- All Superinterfaces:
CertificateParser.ParserHandler
- Enclosing interface:
- X509Certificate
public static interface X509Certificate.ExtensionHandler extends CertificateParser.ParserHandler
ExtensionHandler
is a specializedCertificateParser.ParserHandler
that will be triggered by theCertificateParser
each time a certificate extension is found.
-
-
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
otherwisevalue
- 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)
-
-