Class DefaultZmsClient
- java.lang.Object
-
- com.yahoo.vespa.athenz.client.common.ClientBase
-
- com.yahoo.vespa.athenz.client.zms.DefaultZmsClient
-
- All Implemented Interfaces:
ZmsClient
,java.lang.AutoCloseable
public class DefaultZmsClient extends ClientBase implements ZmsClient
- Author:
- bjorncs
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.yahoo.vespa.athenz.client.common.ClientBase
ClientBase.ClientExceptionFactory
-
-
Constructor Summary
Constructors Constructor Description DefaultZmsClient(java.net.URI zmsUrl, AthenzIdentity identity, javax.net.ssl.SSLContext sslContext)
DefaultZmsClient(java.net.URI zmsUrl, ServiceIdentityProvider identityProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRoleMember(AthenzRole role, AthenzIdentity member)
void
createProviderResourceGroup(AthenzDomain tenantDomain, AthenzIdentity providerService, java.lang.String resourceGroup, java.util.Set<RoleAction> roleActions, OktaIdentityToken identityToken, OktaAccessToken accessToken)
void
createTenancy(AthenzDomain tenantDomain, AthenzIdentity providerService, OktaIdentityToken identityToken, OktaAccessToken accessToken)
void
deleteProviderResourceGroup(AthenzDomain tenantDomain, AthenzIdentity providerService, java.lang.String resourceGroup, OktaIdentityToken identityToken, OktaAccessToken accessToken)
void
deleteRoleMember(AthenzRole role, AthenzIdentity member)
void
deleteTenancy(AthenzDomain tenantDomain, AthenzIdentity providerService, OktaIdentityToken identityToken, OktaAccessToken accessToken)
java.util.List<AthenzDomain>
getDomainList(java.lang.String prefix)
boolean
getMembership(AthenzRole role, AthenzIdentity identity)
boolean
hasAccess(AthenzResourceName resource, java.lang.String action, AthenzIdentity identity)
-
Methods inherited from class com.yahoo.vespa.athenz.client.common.ClientBase
close, execute, readEntity, toJsonStringEntity
-
-
-
-
Constructor Detail
-
DefaultZmsClient
public DefaultZmsClient(java.net.URI zmsUrl, AthenzIdentity identity, javax.net.ssl.SSLContext sslContext)
-
DefaultZmsClient
public DefaultZmsClient(java.net.URI zmsUrl, ServiceIdentityProvider identityProvider)
-
-
Method Detail
-
createTenancy
public void createTenancy(AthenzDomain tenantDomain, AthenzIdentity providerService, OktaIdentityToken identityToken, OktaAccessToken accessToken)
- Specified by:
createTenancy
in interfaceZmsClient
-
deleteTenancy
public void deleteTenancy(AthenzDomain tenantDomain, AthenzIdentity providerService, OktaIdentityToken identityToken, OktaAccessToken accessToken)
- Specified by:
deleteTenancy
in interfaceZmsClient
-
createProviderResourceGroup
public void createProviderResourceGroup(AthenzDomain tenantDomain, AthenzIdentity providerService, java.lang.String resourceGroup, java.util.Set<RoleAction> roleActions, OktaIdentityToken identityToken, OktaAccessToken accessToken)
- Specified by:
createProviderResourceGroup
in interfaceZmsClient
-
deleteProviderResourceGroup
public void deleteProviderResourceGroup(AthenzDomain tenantDomain, AthenzIdentity providerService, java.lang.String resourceGroup, OktaIdentityToken identityToken, OktaAccessToken accessToken)
- Specified by:
deleteProviderResourceGroup
in interfaceZmsClient
-
addRoleMember
public void addRoleMember(AthenzRole role, AthenzIdentity member)
- Specified by:
addRoleMember
in interfaceZmsClient
-
deleteRoleMember
public void deleteRoleMember(AthenzRole role, AthenzIdentity member)
- Specified by:
deleteRoleMember
in interfaceZmsClient
-
getMembership
public boolean getMembership(AthenzRole role, AthenzIdentity identity)
- Specified by:
getMembership
in interfaceZmsClient
-
getDomainList
public java.util.List<AthenzDomain> getDomainList(java.lang.String prefix)
- Specified by:
getDomainList
in interfaceZmsClient
-
hasAccess
public boolean hasAccess(AthenzResourceName resource, java.lang.String action, AthenzIdentity identity)
-
-