[BindServiceMethod(typeof(IAMCredentials), "BindService")]
public abstract class IAMCredentialsBase
Base class for server-side implementations of IAMCredentials
Namespace
Google.Cloud.Iam.Credentials.V1Assembly
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 | |
---|---|
Name | Description |
request | GenerateAccessTokenRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | GenerateIdTokenRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | SignBlobRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | SignJwtRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<SignJwtResponse> | The response to send back to the client (wrapped by a task). |