Interface VerifyCertificateCallback

All Superinterfaces:
Callback, NetworkCallback, NetworkSyncCallback<VerifyCertificateCallback.Params,VerifyCertificateCallback.Response>, SyncCallback<VerifyCertificateCallback.Params,VerifyCertificateCallback.Response>

The callback is invoked when certificate verification is required.

The callback can be used to verify SSL certificates using the different strategies defined in the VerifyCertificateCallback.Response.

Use the VerifyCertificateCallback.Response.valid() method to notify the engine that the certificate is valid.

Use the VerifyCertificateCallback.Response.invalid(CertVerificationStatus...) method to notify the engine that the certificate is invalid.

Use the VerifyCertificateCallback.Response.defaultAction() method to allow the engine to verify the certificate by itself.

If the callback throws an exception, the VerifyCertificateCallback.Response.defaultAction() method will be invoked.