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

public static class IAMCredentials

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

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.

Inheritance

object > IAMCredentials

Namespace

Google.Cloud.Iam.Credentials.V1

Assembly

Google.Cloud.Iam.Credentials.V1.dll

Methods

BindService(IAMCredentialsBase)

public static ServerServiceDefinition BindService(IAMCredentials.IAMCredentialsBase serviceImpl)

Creates service definition that can be registered with a server

Parameter
NameDescription
serviceImplIAMCredentialsIAMCredentialsBase

An object implementing the server-side handling logic.

Returns
TypeDescription
ServerServiceDefinition

BindService(ServiceBinderBase, IAMCredentialsBase)

public static void BindService(ServiceBinderBase serviceBinder, IAMCredentials.IAMCredentialsBase serviceImpl)

Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. Note: this method is part of an experimental API that can change or be removed without any prior notice.

Parameters
NameDescription
serviceBinderServiceBinderBase

Service methods will be bound by calling AddMethod on this object.

serviceImplIAMCredentialsIAMCredentialsBase

An object implementing the server-side handling logic.