Class HttpJsonIamCredentialsStub (2.59.0)

publicclass HttpJsonIamCredentialsStubextendsIamCredentialsStub

REST stub implementation for the IAMCredentials service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > IamCredentialsStub > HttpJsonIamCredentialsStub

Static Methods

create(ClientContext clientContext)

publicstaticfinalHttpJsonIamCredentialsStubcreate(ClientContextclientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
HttpJsonIamCredentialsStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

publicstaticfinalHttpJsonIamCredentialsStubcreate(ClientContextclientContext,HttpJsonStubCallableFactorycallableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory
Returns
Type Description
HttpJsonIamCredentialsStub
Exceptions
Type Description
IOException

create(IamCredentialsStubSettings settings)

publicstaticfinalHttpJsonIamCredentialsStubcreate(IamCredentialsStubSettingssettings)
Parameter
Name Description
settings IamCredentialsStubSettings
Returns
Type Description
HttpJsonIamCredentialsStub
Exceptions
Type Description
IOException

getMethodDescriptors()

publicstaticList<ApiMethodDescriptor>getMethodDescriptors()
Returns
Type Description
List<ApiMethodDescriptor>

Constructors

HttpJsonIamCredentialsStub(IamCredentialsStubSettings settings, ClientContext clientContext)

protectedHttpJsonIamCredentialsStub(IamCredentialsStubSettingssettings,ClientContextclientContext)

Constructs an instance of HttpJsonIamCredentialsStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
Name Description
settings IamCredentialsStubSettings
clientContext ClientContext

HttpJsonIamCredentialsStub(IamCredentialsStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protectedHttpJsonIamCredentialsStub(IamCredentialsStubSettingssettings,ClientContextclientContext,HttpJsonStubCallableFactorycallableFactory)

Constructs an instance of HttpJsonIamCredentialsStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
Name Description
settings IamCredentialsStubSettings
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

publicbooleanawaitTermination(longduration,TimeUnitunit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

close()

publicfinalvoidclose()
Overrides

generateAccessTokenCallable()

publicUnaryCallable<GenerateAccessTokenRequest,GenerateAccessTokenResponse>generateAccessTokenCallable()
Returns
Type Description
UnaryCallable<GenerateAccessTokenRequest,GenerateAccessTokenResponse>
Overrides

generateIdTokenCallable()

publicUnaryCallable<GenerateIdTokenRequest,GenerateIdTokenResponse>generateIdTokenCallable()
Returns
Type Description
UnaryCallable<GenerateIdTokenRequest,GenerateIdTokenResponse>
Overrides

isShutdown()

publicbooleanisShutdown()
Returns
Type Description
boolean

isTerminated()

publicbooleanisTerminated()
Returns
Type Description
boolean

shutdown()

publicvoidshutdown()

shutdownNow()

publicvoidshutdownNow()

signBlobCallable()

publicUnaryCallable<SignBlobRequest,SignBlobResponse>signBlobCallable()
Returns
Type Description
UnaryCallable<SignBlobRequest,SignBlobResponse>
Overrides

signJwtCallable()

publicUnaryCallable<SignJwtRequest,SignJwtResponse>signJwtCallable()
Returns
Type Description
UnaryCallable<SignJwtRequest,SignJwtResponse>
Overrides

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.