use of com.yahoo.athenz.auth.impl.SimpleServiceIdentityProvider in project pulsar by yahoo.
the class AuthenticationAthenz method getZtsClient.
ZTSClient getZtsClient() {
if (ztsClient == null) {
PrivateKey privateKey = Crypto.loadPrivateKey(new File(privateKeyPath));
ServiceIdentityProvider siaProvider = new SimpleServiceIdentityProvider(tenantDomain, tenantService, privateKey, keyId);
ztsClient = new ZTSClient(null, tenantDomain, tenantService, siaProvider);
}
return ztsClient;
}
Aggregations