public interface AuthorizationContext extends DatasetContext, Admin, Transactional, AuthenticationContext, SecureStore
Authorizer extensions to interact with CDAP. This context is available to Authorizer
extensions in the Authorizer.initialize(AuthorizationContext) method.
Extensions can use this class to:
Principal making the authorization request.| Modifier and Type | Method and Description |
|---|---|
void |
createTopic(String topic)
Currently messaging is not supported.
|
void |
createTopic(String topic,
Map<String,String> properties)
Currently messaging is not supported.
|
void |
deleteTopic(String topic)
Currently messaging is not supported.
|
Properties |
getExtensionProperties()
Returns the properties for the authorization extension.
|
Map<String,String> |
getTopicProperties(String topic)
Currently messaging is not supported.
|
void |
updateTopic(String topic,
Map<String,String> properties)
Currently messaging is not supported.
|
discardDataset, getDataset, getDataset, getDataset, getDataset, releaseDatasetcreateDataset, datasetExists, dropDataset, getDatasetProperties, getDatasetType, truncateDataset, updateDatasetdeleteSecureData, putSecureDataexecute, executegetPrincipalgetSecureData, listSecureDataProperties getExtensionProperties()
cdap-site.xml with the prefix security.authorization.extension.config..Properties for the authorization extensionvoid createTopic(String topic) throws TopicAlreadyExistsException, IOException
UnsupportedOperationException.createTopic in interface MessagingAdminTopicAlreadyExistsExceptionIOExceptionvoid createTopic(String topic, Map<String,String> properties) throws TopicAlreadyExistsException, IOException
UnsupportedOperationException.createTopic in interface MessagingAdminTopicAlreadyExistsExceptionIOExceptionMap<String,String> getTopicProperties(String topic) throws TopicNotFoundException, IOException
UnsupportedOperationException.getTopicProperties in interface MessagingAdminTopicNotFoundExceptionIOExceptionvoid updateTopic(String topic, Map<String,String> properties) throws TopicNotFoundException, IOException
UnsupportedOperationException.updateTopic in interface MessagingAdminTopicNotFoundExceptionIOExceptionvoid deleteTopic(String topic) throws TopicNotFoundException, IOException
UnsupportedOperationException.deleteTopic in interface MessagingAdminTopicNotFoundExceptionIOExceptionCopyright © 2017 Cask Data, Inc. Licensed under the Apache License, Version 2.0.