Class IAMCredentialsGrpc.IAMCredentialsBlockingStub (2.49.0)

public static final class IAMCredentialsGrpc.IAMCredentialsBlockingStub extends AbstractBlockingStub<IAMCredentialsGrpc.IAMCredentialsBlockingStub>

A stub to allow clients to do synchronous 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.AbstractBlockingStub > IAMCredentialsGrpc.IAMCredentialsBlockingStub

Methods

build(Channel channel, CallOptions callOptions)

protected IAMCredentialsGrpc.IAMCredentialsBlockingStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
IAMCredentialsGrpc.IAMCredentialsBlockingStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

generateAccessToken(GenerateAccessTokenRequest request)

public GenerateAccessTokenResponse generateAccessToken(GenerateAccessTokenRequest request)

Generates an OAuth 2.0 access token for a service account.

Parameter
Name Description
request GenerateAccessTokenRequest
Returns
Type Description
GenerateAccessTokenResponse

generateIdToken(GenerateIdTokenRequest request)

public GenerateIdTokenResponse generateIdToken(GenerateIdTokenRequest request)

Generates an OpenID Connect ID token for a service account.

Parameter
Name Description
request GenerateIdTokenRequest
Returns
Type Description
GenerateIdTokenResponse

signBlob(SignBlobRequest request)

public SignBlobResponse signBlob(SignBlobRequest request)

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

Parameter
Name Description
request SignBlobRequest
Returns
Type Description
SignBlobResponse

signJwt(SignJwtRequest request)

public SignJwtResponse signJwt(SignJwtRequest request)

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

Parameter
Name Description
request SignJwtRequest
Returns
Type Description
SignJwtResponse