class PrivateKeySigner

Defined at line 35 of file ../../third_party/grpc/src/include/grpc/private_key_signer.h

Implementations of this class must be thread-safe.

Public Methods

std::variant<absl::StatusOr<std::string>, std::shared_ptr<AsyncSigningHandle>> Sign (absl::string_view data_to_sign, SignatureAlgorithm signature_algorithm, OnSignComplete on_sign_complete)

Signs data_to_sign.

May return either synchronously or asynchronously.

For synchronous returns, directly returns either the signed bytes

or a failed status, and the callback will never be invoked.

For asynchronous implementations, returns a handle for the asynchronous

signing operation. The function argument on_sign_complete must be called by

the implementer when the async signing operation is complete.

on_sign_complete must not be invoked synchronously within Sign().

void Cancel (std::shared_ptr<AsyncSigningHandle> handle)

Cancels an in-flight async signing operation using a handle returned

from a previous call to Sign().

void ~PrivateKeySigner ()

Defined at line 70 of file ../../third_party/grpc/src/include/grpc/private_key_signer.h

Enumerations

enum class SignatureAlgorithm
Name Value
kRsaPkcs1Sha256 0
kRsaPkcs1Sha384 1
kRsaPkcs1Sha512 2
kEcdsaSecp256r1Sha256 3
kEcdsaSecp384r1Sha384 4
kEcdsaSecp521r1Sha512 5
kRsaPssRsaeSha256 6
kRsaPssRsaeSha384 7
kRsaPssRsaeSha512 8

Enum class representing TLS signature algorithm identifiers from BoringSSL.

The values correspond to the SSL_SIGN_* macros in

<openssl

/ssl.h>.

Defined at line 53 of file ../../third_party/grpc/src/include/grpc/private_key_signer.h

Records