public class StorageRequestAuthorizer extends Object
| Constructor and Description |
|---|
StorageRequestAuthorizer(Class<? extends AuthorizationHandler> handlerClass,
Map<String,String> properties)
Create and init AuthorizationHandler from Class definition.
|
| Modifier and Type | Method and Description |
|---|---|
void |
authorize(com.google.api.services.storage.StorageRequest<?> request)
Authorize a storage request using
AuthorizationHandler. |
public StorageRequestAuthorizer(Class<? extends AuthorizationHandler> handlerClass, Map<String,String> properties)
handlerClass - Class object of Authorization handler.properties - String to String map of properties.public void authorize(com.google.api.services.storage.StorageRequest<?> request)
throws AccessDeniedException
AuthorizationHandler.request - Storage request to be authorized.AccessDeniedException - Thrown when access denied by AuthorizationHandler.Copyright © 2022. All rights reserved.