Class IAMCredentialsGrpc.IAMCredentialsFutureStub (2.0.14)

public static final class IAMCredentialsGrpc.IAMCredentialsFutureStub extends AbstractFutureStub<IAMCredentialsGrpc.IAMCredentialsFutureStub>

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 > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractFutureStub > IAMCredentialsGrpc.IAMCredentialsFutureStub

Methods

build(Channel channel, CallOptions callOptions)

protected IAMCredentialsGrpc.IAMCredentialsFutureStub build(Channel channel, CallOptions callOptions)
Parameters
NameDescription
channelio.grpc.Channel
callOptionsio.grpc.CallOptions
Returns
TypeDescription
IAMCredentialsGrpc.IAMCredentialsFutureStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

generateAccessToken(GenerateAccessTokenRequest request)

public ListenableFuture<GenerateAccessTokenResponse> generateAccessToken(GenerateAccessTokenRequest request)

Generates an OAuth 2.0 access token for a service account.

Parameter
NameDescription
requestGenerateAccessTokenRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<GenerateAccessTokenResponse>

generateIdToken(GenerateIdTokenRequest request)

public ListenableFuture<GenerateIdTokenResponse> generateIdToken(GenerateIdTokenRequest request)

Generates an OpenID Connect ID token for a service account.

Parameter
NameDescription
requestGenerateIdTokenRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<GenerateIdTokenResponse>

signBlob(SignBlobRequest request)

public ListenableFuture<SignBlobResponse> signBlob(SignBlobRequest request)

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

Parameter
NameDescription
requestSignBlobRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<SignBlobResponse>

signJwt(SignJwtRequest request)

public ListenableFuture<SignJwtResponse> signJwt(SignJwtRequest request)

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

Parameter
NameDescription
requestSignJwtRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<SignJwtResponse>