All Downloads are FREE. Search and download functionalities are using the official Maven repository.

co.cask.cdap.security.spi.authorization.AuthorizationContext Maven / Gradle / Ivy

There is a newer version: 5.1.2
Show newest version
/*
 * Copyright © 2016 Cask Data, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */

package co.cask.cdap.security.spi.authorization;

import co.cask.cdap.api.Admin;
import co.cask.cdap.api.Transactional;
import co.cask.cdap.api.data.DatasetContext;

import java.util.Properties;

/**
 * A context for {@link Authorizer} extensions to interact with CDAP. This context is available to {@link Authorizer}
 * extensions in the {@link Authorizer#initialize(AuthorizationContext)} method.
 *
 * Extensions can use this class to:
 * 
    *
  1. Perform admin operations such as create/update/truncate/drop/exists on a dataset.
  2. *
  3. Instantiate datasets and obtain objects for them.
  4. *
  5. Execute operations on datasets inside transactions.
  6. *
*/ public interface AuthorizationContext extends DatasetContext, Admin, Transactional { /** * Returns the properties for the authorization extension. These properties are composed of all the properties * defined in {@code cdap-site.xml} with the prefix {@code security.authorization.extension.config.}. * * @return the {@link Properties} for the authorization extension */ Properties getExtensionProperties(); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy