[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
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 |
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 | |
---|---|
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 |
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 | |
---|---|
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 |
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 | |
---|---|
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 |
TaskSignJwtResponse |
The response to send back to the client (wrapped by a task). |