public static class ServiceAccountUsageAuthorizer.WhitelistAuthorizationPolicy extends Object implements ServiceAccountUsageAuthorizer.AuthorizationPolicy
| Constructor and Description |
|---|
WhitelistAuthorizationPolicy(Iterable<WorkflowId> whitelist) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
shouldEnforceAuthorization(WorkflowId workflowId,
String serviceAccount,
com.google.api.client.googleapis.auth.oauth2.GoogleIdToken idToken)
Returns true if authorization should be enforced, false otherwise.
|
public WhitelistAuthorizationPolicy(Iterable<WorkflowId> whitelist)
public boolean shouldEnforceAuthorization(WorkflowId workflowId, String serviceAccount, com.google.api.client.googleapis.auth.oauth2.GoogleIdToken idToken)
ServiceAccountUsageAuthorizer.AuthorizationPolicyshouldEnforceAuthorization in interface ServiceAccountUsageAuthorizer.AuthorizationPolicyCopyright © 2018. All rights reserved.