Class IAMCredentialsGrpc.IAMCredentialsFutureStub (2.18.0)

publicstaticfinalclass IAMCredentialsGrpc.IAMCredentialsFutureStubextendsAbstractFutureStub<IAMCredentialsGrpc.IAMCredentialsFutureStub>

A stub to allow clients to do ListenableFuture-style rpc calls to service 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

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractFutureStub > IAMCredentialsGrpc.IAMCredentialsFutureStub

Inherited Members

io.grpc.stub.AbstractFutureStub.<T>newStub(io.grpc.stub.AbstractStub.StubFactory<T>,io.grpc.Channel)
io.grpc.stub.AbstractFutureStub.<T>newStub(io.grpc.stub.AbstractStub.StubFactory<T>,io.grpc.Channel,io.grpc.CallOptions)
io.grpc.stub.AbstractStub.<T>withOption(io.grpc.CallOptions.Key<T>,T)
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)
io.grpc.stub.AbstractStub.getCallOptions()
io.grpc.stub.AbstractStub.getChannel()
io.grpc.stub.AbstractStub.withCallCredentials(io.grpc.CallCredentials)
io.grpc.stub.AbstractStub.withChannel(io.grpc.Channel)
io.grpc.stub.AbstractStub.withCompression(java.lang.String)
io.grpc.stub.AbstractStub.withDeadline(io.grpc.Deadline)
io.grpc.stub.AbstractStub.withDeadlineAfter(long,java.util.concurrent.TimeUnit)
io.grpc.stub.AbstractStub.withExecutor(java.util.concurrent.Executor)
io.grpc.stub.AbstractStub.withInterceptors(io.grpc.ClientInterceptor...)
io.grpc.stub.AbstractStub.withMaxInboundMessageSize(int)
io.grpc.stub.AbstractStub.withMaxOutboundMessageSize(int)
io.grpc.stub.AbstractStub.withWaitForReady()

Methods

build(Channel channel, CallOptions callOptions)

protectedIAMCredentialsGrpc.IAMCredentialsFutureStubbuild(Channelchannel,CallOptionscallOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
IAMCredentialsGrpc.IAMCredentialsFutureStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

generateAccessToken(GenerateAccessTokenRequest request)

publicListenableFuture<GenerateAccessTokenResponse>generateAccessToken(GenerateAccessTokenRequestrequest)

Generates an OAuth 2.0 access token for a service account.

Parameter
Name Description
request GenerateAccessTokenRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<GenerateAccessTokenResponse>

generateIdToken(GenerateIdTokenRequest request)

publicListenableFuture<GenerateIdTokenResponse>generateIdToken(GenerateIdTokenRequestrequest)

Generates an OpenID Connect ID token for a service account.

Parameter
Name Description
request GenerateIdTokenRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<GenerateIdTokenResponse>

signBlob(SignBlobRequest request)

publicListenableFuture<SignBlobResponse>signBlob(SignBlobRequestrequest)

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

Parameter
Name Description
request SignBlobRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<SignBlobResponse>

signJwt(SignJwtRequest request)

publicListenableFuture<SignJwtResponse>signJwt(SignJwtRequestrequest)

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

Parameter
Name Description
request SignJwtRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<SignJwtResponse>

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.