IAMCredentialsClient class
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.
- Annotations
-
- @GrpcServiceName.new('google.iam.credentials.v1.IAMCredentials')
Constructors
-
IAMCredentialsClient(ClientChannel channel, {CallOptions? options, Iterable<
ClientInterceptor> ? interceptors})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
$createCall<
Q, R> (ClientMethod< Q, R> method, Stream<Q> requests, {CallOptions? options}) → ClientCall<Q, R> -
inherited
-
$createStreamingCall<
Q, R> (ClientMethod< Q, R> method, Stream<Q> requests, {CallOptions? options}) → ResponseStream<R> -
inherited
-
$createUnaryCall<
Q, R> (ClientMethod< Q, R> method, Q request, {CallOptions? options}) → ResponseFuture<R> -
inherited
-
generateAccessToken(
GenerateAccessTokenRequest request, {CallOptions? options}) → ResponseFuture< GenerateAccessTokenResponse> - Generates an OAuth 2.0 access token for a service account.
-
generateIdToken(
GenerateIdTokenRequest request, {CallOptions? options}) → ResponseFuture< GenerateIdTokenResponse> - Generates an OpenID Connect ID token for a service account.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
signBlob(
SignBlobRequest request, {CallOptions? options}) → ResponseFuture< SignBlobResponse> - Signs a blob using a service account's system-managed private key.
-
signJwt(
SignJwtRequest request, {CallOptions? options}) → ResponseFuture< SignJwtResponse> - Signs a JWT using a service account's system-managed private key.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- defaultHost → const String
- The hostname for this service.
-
oauthScopes
→ const List<
String> - OAuth scopes needed for the client.