public class IAMCredentials.Projects.ServiceAccounts extends Object
Modifier and Type | Class and Description |
---|---|
class |
IAMCredentials.Projects.ServiceAccounts.GenerateAccessToken |
class |
IAMCredentials.Projects.ServiceAccounts.GenerateIdToken |
class |
IAMCredentials.Projects.ServiceAccounts.GetAllowedLocations |
class |
IAMCredentials.Projects.ServiceAccounts.SignBlob |
class |
IAMCredentials.Projects.ServiceAccounts.SignJwt |
Constructor and Description |
---|
ServiceAccounts() |
Modifier and Type | Method and Description |
---|---|
IAMCredentials.Projects.ServiceAccounts.GenerateAccessToken |
generateAccessToken(String name,
GenerateAccessTokenRequest content)
Generates an OAuth 2.0 access token for a service account.
|
IAMCredentials.Projects.ServiceAccounts.GenerateIdToken |
generateIdToken(String name,
GenerateIdTokenRequest content)
Generates an OpenID Connect ID token for a service account.
|
IAMCredentials.Projects.ServiceAccounts.GetAllowedLocations |
getAllowedLocations(String name)
Returns the trust boundary info for a given service account.
|
IAMCredentials.Projects.ServiceAccounts.SignBlob |
signBlob(String name,
SignBlobRequest content)
Signs a blob using a service account's system-managed private key.
|
IAMCredentials.Projects.ServiceAccounts.SignJwt |
signJwt(String name,
SignJwtRequest content)
Signs a JWT using a service account's system-managed private key.
|
public IAMCredentials.Projects.ServiceAccounts.GenerateAccessToken generateAccessToken(String name, GenerateAccessTokenRequest content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote
operation.name
- Required. The resource name of the service account for which the credentials are requested, in the
following format: `projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. The `-`
wildcard character is required; replacing it with a project ID is invalid.content
- the GenerateAccessTokenRequest
IOException
public IAMCredentials.Projects.ServiceAccounts.GenerateIdToken generateIdToken(String name, GenerateIdTokenRequest content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote
operation.name
- Required. The resource name of the service account for which the credentials are requested, in the
following format: `projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. The `-`
wildcard character is required; replacing it with a project ID is invalid.content
- the GenerateIdTokenRequest
IOException
public IAMCredentials.Projects.ServiceAccounts.GetAllowedLocations getAllowedLocations(String name) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote
operation.name
- Required. Resource name of service account.IOException
public IAMCredentials.Projects.ServiceAccounts.SignBlob signBlob(String name, SignBlobRequest content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.name
- Required. The resource name of the service account for which the credentials are requested, in the
following format: `projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. The `-`
wildcard character is required; replacing it with a project ID is invalid.content
- the SignBlobRequest
IOException
public IAMCredentials.Projects.ServiceAccounts.SignJwt signJwt(String name, SignJwtRequest content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.name
- Required. The resource name of the service account for which the credentials are requested, in the
following format: `projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. The `-`
wildcard character is required; replacing it with a project ID is invalid.content
- the SignJwtRequest
IOException
Copyright © 2011–2024 Google. All rights reserved.