IAM Service Account Credentials v1 API - Class IAMCredentials.IAMCredentialsBase (2.2.0)

[BindServiceMethod(typeof(IAMCredentials), "BindService")]
public abstract class IAMCredentials.IAMCredentialsBase

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

Base class for server-side implementations of IAMCredentials

Inheritance

object > IAMCredentials.IAMCredentialsBase

Namespace

Google.Cloud.Iam.Credentials.V1

Assembly

Google.Cloud.Iam.Credentials.V1.dll

Methods

GenerateAccessToken(GenerateAccessTokenRequest, ServerCallContext)

public virtual Task<GenerateAccessTokenResponse> GenerateAccessToken(GenerateAccessTokenRequest request, ServerCallContext context)

Generates an OAuth 2.0 access token for a service account.

Parameters
NameDescription
requestGenerateAccessTokenRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskGenerateAccessTokenResponse

The response to send back to the client (wrapped by a task).

GenerateIdToken(GenerateIdTokenRequest, ServerCallContext)

public virtual Task<GenerateIdTokenResponse> GenerateIdToken(GenerateIdTokenRequest request, ServerCallContext context)

Generates an OpenID Connect ID token for a service account.

Parameters
NameDescription
requestGenerateIdTokenRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskGenerateIdTokenResponse

The response to send back to the client (wrapped by a task).

SignBlob(SignBlobRequest, ServerCallContext)

public virtual Task<SignBlobResponse> SignBlob(SignBlobRequest request, ServerCallContext context)

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

Parameters
NameDescription
requestSignBlobRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskSignBlobResponse

The response to send back to the client (wrapped by a task).

SignJwt(SignJwtRequest, ServerCallContext)

public virtual Task<SignJwtResponse> SignJwt(SignJwtRequest request, ServerCallContext context)

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

Parameters
NameDescription
requestSignJwtRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskSignJwtResponse

The response to send back to the client (wrapped by a task).