@FunctionalInterface public interface ServiceAccountUsageAuthorizer
This requires the following permissions:
resourcemanager.projects.getIamPolicy
iam.serviceAccounts.getIamPolicy
| Modifier and Type | Interface and Description |
|---|---|
static class |
ServiceAccountUsageAuthorizer.AllAuthorizationPolicy
A policy that always enforces authorization.
|
static interface |
ServiceAccountUsageAuthorizer.AuthorizationPolicy
A policy that decides whether to enforce an authorization decision.
|
static class |
ServiceAccountUsageAuthorizer.Impl |
static class |
ServiceAccountUsageAuthorizer.NoAuthorizationPolicy
A policy that does not enforce any authorization.
|
static class |
ServiceAccountUsageAuthorizer.WhitelistAuthorizationPolicy
A policy that only enforces authorization for a set of workflows.
|
| Modifier and Type | Field and Description |
|---|---|
static ServiceAccountUsageAuthorizer |
NOP |
| Modifier and Type | Method and Description |
|---|---|
void |
authorizeServiceAccountUsage(WorkflowId workflowId,
String serviceAccount,
com.google.api.client.googleapis.auth.oauth2.GoogleIdToken idToken) |
static ServiceAccountUsageAuthorizer |
create(String serviceAccountUserRole,
ServiceAccountUsageAuthorizer.AuthorizationPolicy authorizationPolicy,
com.google.api.client.googleapis.auth.oauth2.GoogleCredential credential,
String serviceName) |
static final ServiceAccountUsageAuthorizer NOP
void authorizeServiceAccountUsage(WorkflowId workflowId, String serviceAccount, com.google.api.client.googleapis.auth.oauth2.GoogleIdToken idToken)
static ServiceAccountUsageAuthorizer create(String serviceAccountUserRole, ServiceAccountUsageAuthorizer.AuthorizationPolicy authorizationPolicy, com.google.api.client.googleapis.auth.oauth2.GoogleCredential credential, String serviceName)
Copyright © 2018. All rights reserved.