Search in sources :

Example 1 with SimpleServiceIdentityProvider

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;
}
Also used : ServiceIdentityProvider(com.yahoo.athenz.auth.ServiceIdentityProvider) SimpleServiceIdentityProvider(com.yahoo.athenz.auth.impl.SimpleServiceIdentityProvider) PrivateKey(java.security.PrivateKey) ZTSClient(com.yahoo.athenz.zts.ZTSClient) File(java.io.File) SimpleServiceIdentityProvider(com.yahoo.athenz.auth.impl.SimpleServiceIdentityProvider)

Aggregations

ServiceIdentityProvider (com.yahoo.athenz.auth.ServiceIdentityProvider)1 SimpleServiceIdentityProvider (com.yahoo.athenz.auth.impl.SimpleServiceIdentityProvider)1 ZTSClient (com.yahoo.athenz.zts.ZTSClient)1 File (java.io.File)1 PrivateKey (java.security.PrivateKey)1