Class IAMCredentialsConnection (2.18.0-rc)

This interface defines virtual methods for each of the user-facing overload sets in IAMCredentialsClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type IAMCredentialsClient.

To create a concrete instance, see MakeIAMCredentialsConnection().

For mocking, see iam_credentials_v1_mocks::MockIAMCredentialsConnection.

Functions

virtual options()

Returns
TypeDescription
Options

virtual GenerateAccessToken(google::iam::credentials::v1::GenerateAccessTokenRequest const &)

Parameter
NameDescription
request google::iam::credentials::v1::GenerateAccessTokenRequest const &
Returns
TypeDescription
StatusOr< google::iam::credentials::v1::GenerateAccessTokenResponse >

virtual GenerateIdToken(google::iam::credentials::v1::GenerateIdTokenRequest const &)

Parameter
NameDescription
request google::iam::credentials::v1::GenerateIdTokenRequest const &
Returns
TypeDescription
StatusOr< google::iam::credentials::v1::GenerateIdTokenResponse >

virtual SignBlob(google::iam::credentials::v1::SignBlobRequest const &)

Parameter
NameDescription
request google::iam::credentials::v1::SignBlobRequest const &
Returns
TypeDescription
StatusOr< google::iam::credentials::v1::SignBlobResponse >

virtual SignJwt(google::iam::credentials::v1::SignJwtRequest const &)

Parameter
NameDescription
request google::iam::credentials::v1::SignJwtRequest const &
Returns
TypeDescription
StatusOr< google::iam::credentials::v1::SignJwtResponse >