class CertificateVerifier

Defined at line 90 of file ../../third_party/grpc-migrating/src/include/grpcpp/security/tls_certificate_verifier.h

The base class of all internal verifier implementations, and the ultimate

class that all external verifiers will eventually be transformed into.

To implement a custom verifier, do not extend this class; instead,

implement a subclass of ExternalCertificateVerifier. Note that custom

verifier implementations can compose their functionality with existing

implementations of this interface, such as HostnameVerifier, by delegating

to an instance of that class.

Public Methods

void CertificateVerifier (grpc_tls_certificate_verifier * v)
void ~CertificateVerifier ()
bool Verify (TlsCustomVerificationCheckRequest * request, std::function<void (grpc::Status)> callback, grpc::Status * sync_status)

Verifies a connection request, based on the logic specified in an internal

verifier. The check on each internal verifier could be either synchronous

or asynchronous, and we will need to use return value to know.

request: the verification information associated with this request

callback: This will only take effect if the verifier is asynchronous.

The function that gRPC will invoke when the verifier has already

completed its asynchronous check. Callers can use this function

to perform any additional checks. The input parameter of the

std::function indicates the status of the verifier check.

sync_status: This will only be useful if the verifier is synchronous.

The status of the verifier as it has already done it's

synchronous check.

return: return true if executed synchronously, otherwise return false

void Cancel (TlsCustomVerificationCheckRequest * request)

Cancels a verification request previously started via Verify().

Used when the connection attempt times out or is cancelled while an async

verification request is pending.

request: the verification information associated with this request

grpc_tls_certificate_verifier * c_verifier ()

Gets the core verifier used internally.

Defined at line 122 of file ../../third_party/grpc-migrating/src/include/grpcpp/security/tls_certificate_verifier.h