Class IAMCredentials.IAMCredentialsBase (1.2.0)

[BindServiceMethod(typeof(IAMCredentials), "BindService")]
public abstract class 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
Task<GenerateAccessTokenResponse>

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
Task<GenerateIdTokenResponse>

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
Task<SignBlobResponse>

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
Task<SignJwtResponse>

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