Class IAMCredentialsClientImpl (1.2.0)

public sealed class IAMCredentialsClientImpl : IAMCredentialsClient

IAMCredentials client wrapper implementation, for convenient use.

Inheritance

Object > IAMCredentialsClient > IAMCredentialsClientImpl

Namespace

Google.Cloud.Iam.Credentials.V1

Assembly

Google.Cloud.Iam.Credentials.V1.dll

Remarks

A service account is a special type of Google account that belongs to your application or a virtual machine (VM), instead of to an individual end user. Your application assumes the identity of the service account to call Google APIs, so that the users aren't directly involved.

Service account credentials are used to temporarily assume the identity of the service account. Supported credential types include OAuth 2.0 access tokens, OpenID Connect ID tokens, self-signed JSON Web Tokens (JWTs), and more.

Constructors

IAMCredentialsClientImpl(IAMCredentials.IAMCredentialsClient, IAMCredentialsSettings)

public IAMCredentialsClientImpl(IAMCredentials.IAMCredentialsClient grpcClient, IAMCredentialsSettings settings)

Constructs a client wrapper for the IAMCredentials service, with the specified gRPC client and settings.

Parameters
NameDescription
grpcClientIAMCredentials.IAMCredentialsClient

The underlying gRPC client.

settingsIAMCredentialsSettings

The base IAMCredentialsSettings used within this client.

Properties

GrpcClient

public override IAMCredentials.IAMCredentialsClient GrpcClient { get; }

The underlying gRPC IAMCredentials client

Property Value
TypeDescription
IAMCredentials.IAMCredentialsClient
Overrides

Methods

GenerateAccessToken(GenerateAccessTokenRequest, CallSettings)

public override GenerateAccessTokenResponse GenerateAccessToken(GenerateAccessTokenRequest request, CallSettings callSettings = null)

Generates an OAuth 2.0 access token for a service account.

Parameters
NameDescription
requestGenerateAccessTokenRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
GenerateAccessTokenResponse

The RPC response.

Overrides

GenerateAccessTokenAsync(GenerateAccessTokenRequest, CallSettings)

public override Task<GenerateAccessTokenResponse> GenerateAccessTokenAsync(GenerateAccessTokenRequest request, CallSettings callSettings = null)

Generates an OAuth 2.0 access token for a service account.

Parameters
NameDescription
requestGenerateAccessTokenRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<GenerateAccessTokenResponse>

A Task containing the RPC response.

Overrides

GenerateIdToken(GenerateIdTokenRequest, CallSettings)

public override GenerateIdTokenResponse GenerateIdToken(GenerateIdTokenRequest request, CallSettings callSettings = null)

Generates an OpenID Connect ID token for a service account.

Parameters
NameDescription
requestGenerateIdTokenRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
GenerateIdTokenResponse

The RPC response.

Overrides

GenerateIdTokenAsync(GenerateIdTokenRequest, CallSettings)

public override Task<GenerateIdTokenResponse> GenerateIdTokenAsync(GenerateIdTokenRequest request, CallSettings callSettings = null)

Generates an OpenID Connect ID token for a service account.

Parameters
NameDescription
requestGenerateIdTokenRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<GenerateIdTokenResponse>

A Task containing the RPC response.

Overrides

SignBlob(SignBlobRequest, CallSettings)

public override SignBlobResponse SignBlob(SignBlobRequest request, CallSettings callSettings = null)

Signs a blob using a service account's system-managed private key.

Parameters
NameDescription
requestSignBlobRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
SignBlobResponse

The RPC response.

Overrides

SignBlobAsync(SignBlobRequest, CallSettings)

public override Task<SignBlobResponse> SignBlobAsync(SignBlobRequest request, CallSettings callSettings = null)

Signs a blob using a service account's system-managed private key.

Parameters
NameDescription
requestSignBlobRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<SignBlobResponse>

A Task containing the RPC response.

Overrides

SignJwt(SignJwtRequest, CallSettings)

public override SignJwtResponse SignJwt(SignJwtRequest request, CallSettings callSettings = null)

Signs a JWT using a service account's system-managed private key.

Parameters
NameDescription
requestSignJwtRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
SignJwtResponse

The RPC response.

Overrides

SignJwtAsync(SignJwtRequest, CallSettings)

public override Task<SignJwtResponse> SignJwtAsync(SignJwtRequest request, CallSettings callSettings = null)

Signs a JWT using a service account's system-managed private key.

Parameters
NameDescription
requestSignJwtRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<SignJwtResponse>

A Task containing the RPC response.

Overrides