use of org.apache.pulsar.broker.authentication.AuthenticationProviderAthenz in project incubator-pulsar by apache.
the class AuthenticationProviderAthenzTest method setup.
@BeforeClass
public void setup() throws Exception {
// Set provider domain name
properties = new Properties();
properties.setProperty("athenzDomainNames", "test_provider");
config = new ServiceConfiguration();
config.setProperties(properties);
// Initialize authentication provider
provider = new AuthenticationProviderAthenz();
provider.initialize(config);
// Specify Athenz configuration file for AuthZpeClient which is used in AuthenticationProviderAthenz
System.setProperty(ZpeConsts.ZPE_PROP_ATHENZ_CONF, "./src/test/resources/athenz.conf.test");
}
Aggregations