Class HttpJsonIamCredentialsStub (2.19.0)

public class HttpJsonIamCredentialsStub extends IamCredentialsStub

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)

public static final HttpJsonIamCredentialsStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
HttpJsonIamCredentialsStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonIamCredentialsStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory
Returns
TypeDescription
HttpJsonIamCredentialsStub
Exceptions
TypeDescription
IOException

create(IamCredentialsStubSettings settings)

public static final HttpJsonIamCredentialsStub create(IamCredentialsStubSettings settings)
Parameter
NameDescription
settingsIamCredentialsStubSettings
Returns
TypeDescription
HttpJsonIamCredentialsStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
List<ApiMethodDescriptor>

Constructors

HttpJsonIamCredentialsStub(IamCredentialsStubSettings settings, ClientContext clientContext)

protected HttpJsonIamCredentialsStub(IamCredentialsStubSettings settings, ClientContext clientContext)

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
NameDescription
settingsIamCredentialsStubSettings
clientContextClientContext

HttpJsonIamCredentialsStub(IamCredentialsStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonIamCredentialsStub(IamCredentialsStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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
NameDescription
settingsIamCredentialsStubSettings
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()
Overrides

generateAccessTokenCallable()

public UnaryCallable<GenerateAccessTokenRequest,GenerateAccessTokenResponse> generateAccessTokenCallable()
Returns
TypeDescription
UnaryCallable<GenerateAccessTokenRequest,GenerateAccessTokenResponse>
Overrides

generateIdTokenCallable()

public UnaryCallable<GenerateIdTokenRequest,GenerateIdTokenResponse> generateIdTokenCallable()
Returns
TypeDescription
UnaryCallable<GenerateIdTokenRequest,GenerateIdTokenResponse>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

signBlobCallable()

public UnaryCallable<SignBlobRequest,SignBlobResponse> signBlobCallable()
Returns
TypeDescription
UnaryCallable<SignBlobRequest,SignBlobResponse>
Overrides

signJwtCallable()

public UnaryCallable<SignJwtRequest,SignJwtResponse> signJwtCallable()
Returns
TypeDescription
UnaryCallable<SignJwtRequest,SignJwtResponse>
Overrides