This package provides an implementation of the authorization-related interfaces
defined by the org.onap.dmaap.datarouter.authz
package, intended for
use with the provisioning server for Data Router Release 1. In DR R1, we do not
have an external policy engine, so this implementation performs the authorization
locally.
In order to perform the authorization, this package needs access to provisioning data
about feeds and subscriptions. This package defines an interface
(org.onap.dmaap.datarouter.authz.impl.ProvDataProvider
) through which it
expects to get this data. The provisioning server code must provide an implementation
of this interface.
A software component that wishes to use this implementation must:
org.onap.dmaap.datarouter.authz.impl.ProvDataProvider
interface.
ProvDataProvider
implementation.
org.onap.dmaap.datarouter.authz.impl.ProvAuthorizer
class defined in this package, passing it an instance of the ProvDataProvider
implementation.
ProvDataProvider dataProv = new MyDataProvider();
Authorizer authz = new ProvAuthorizer(dataProv);