Search in sources :

Example 1 with AuthenticationProviderAthenz

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");
}
Also used : ServiceConfiguration(org.apache.pulsar.broker.ServiceConfiguration) AuthenticationProviderAthenz(org.apache.pulsar.broker.authentication.AuthenticationProviderAthenz) Properties(java.util.Properties) BeforeClass(org.testng.annotations.BeforeClass)

Aggregations

Properties (java.util.Properties)1 ServiceConfiguration (org.apache.pulsar.broker.ServiceConfiguration)1 AuthenticationProviderAthenz (org.apache.pulsar.broker.authentication.AuthenticationProviderAthenz)1 BeforeClass (org.testng.annotations.BeforeClass)1