Class IAMCredentialsConnection (2.29.0)

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
Type Description
Options

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

Parameter
Name Description
request google::iam::credentials::v1::GenerateAccessTokenRequest const &
Returns
Type Description
StatusOr< google::iam::credentials::v1::GenerateAccessTokenResponse >

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

Parameter
Name Description
request google::iam::credentials::v1::GenerateIdTokenRequest const &
Returns
Type Description
StatusOr< google::iam::credentials::v1::GenerateIdTokenResponse >

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

Parameter
Name Description
request google::iam::credentials::v1::SignBlobRequest const &
Returns
Type Description
StatusOr< google::iam::credentials::v1::SignBlobResponse >

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

Parameter
Name Description
request google::iam::credentials::v1::SignJwtRequest const &
Returns
Type Description
StatusOr< google::iam::credentials::v1::SignJwtResponse >