Class IAMCredentialsGrpc.IAMCredentialsImplBase (2.13.0)

public abstract static class IAMCredentialsGrpc.IAMCredentialsImplBase implements BindableService

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

java.lang.Object > IAMCredentialsGrpc.IAMCredentialsImplBase

Implements

io.grpc.BindableService

Constructors

IAMCredentialsImplBase()

public IAMCredentialsImplBase()

Methods

bindService()

public final ServerServiceDefinition bindService()
Returns
TypeDescription
io.grpc.ServerServiceDefinition

generateAccessToken(GenerateAccessTokenRequest request, StreamObserver<GenerateAccessTokenResponse> responseObserver)

public void generateAccessToken(GenerateAccessTokenRequest request, StreamObserver<GenerateAccessTokenResponse> responseObserver)

Generates an OAuth 2.0 access token for a service account.

Parameters
NameDescription
requestGenerateAccessTokenRequest
responseObserverio.grpc.stub.StreamObserver<GenerateAccessTokenResponse>

generateIdToken(GenerateIdTokenRequest request, StreamObserver<GenerateIdTokenResponse> responseObserver)

public void generateIdToken(GenerateIdTokenRequest request, StreamObserver<GenerateIdTokenResponse> responseObserver)

Generates an OpenID Connect ID token for a service account.

Parameters
NameDescription
requestGenerateIdTokenRequest
responseObserverio.grpc.stub.StreamObserver<GenerateIdTokenResponse>

signBlob(SignBlobRequest request, StreamObserver<SignBlobResponse> responseObserver)

public void signBlob(SignBlobRequest request, StreamObserver<SignBlobResponse> responseObserver)

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

Parameters
NameDescription
requestSignBlobRequest
responseObserverio.grpc.stub.StreamObserver<SignBlobResponse>

signJwt(SignJwtRequest request, StreamObserver<SignJwtResponse> responseObserver)

public void signJwt(SignJwtRequest request, StreamObserver<SignJwtResponse> responseObserver)

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

Parameters
NameDescription
requestSignJwtRequest
responseObserverio.grpc.stub.StreamObserver<SignJwtResponse>