Digital Signature Validator
Validates digital signatures. Use .validateSignature passing it a signature info.
Functions
Certificate revocation checks (OCSP) are by default enabled. OCSP runs a network check to test certificates are still valid (not revoked/expired etc). If there are issues with this feature, it can be disabled with this method.
Validates passed digital signature. Signature certificate is validated in according to root CA certificates passed to TrustedKeyStore. This may take a bit of time so it shouldn't be run on main thread.
Validates passed digital signature. Signature certificate is validated in according to root CA certificates passed to TrustedKeyStore. This may take a bit of time so it shouldn't be run on main thread. This method does not operate on any particular scheduler, so use Single.subscribeOn to offload validation to a different thread.