IAM Service Account Credentials v1 API - Class IAMCredentialsClientImpl (2.3.0)

public sealed class IAMCredentialsClientImpl : IAMCredentialsClient

Reference documentation and code samples for the IAM Service Account Credentials v1 API class IAMCredentialsClientImpl.

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(IAMCredentialsClient, IAMCredentialsSettings, ILogger)

public IAMCredentialsClientImpl(IAMCredentials.IAMCredentialsClient grpcClient, IAMCredentialsSettings settings, ILogger logger)

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

Parameters
NameDescription
grpcClientIAMCredentialsIAMCredentialsClient

The underlying gRPC client.

settingsIAMCredentialsSettings

The base IAMCredentialsSettings used within this client.

loggerILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override IAMCredentials.IAMCredentialsClient GrpcClient { get; }

The underlying gRPC IAMCredentials client

Property Value
TypeDescription
IAMCredentialsIAMCredentialsClient
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
TaskGenerateAccessTokenResponse

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
TaskGenerateIdTokenResponse

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
TaskSignBlobResponse

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
TaskSignJwtResponse

A Task containing the RPC response.

Overrides