Class AthenzDbMock.Domain
java.lang.Object
com.yahoo.vespa.hosted.controller.api.integration.athenz.AthenzDbMock.Domain
- Enclosing class:
- AthenzDbMock
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Set<com.yahoo.vespa.athenz.api.AthenzIdentity>booleanfinal com.yahoo.vespa.athenz.api.AthenzDomainfinal Map<String,AthenzDbMock.Policy> final List<AthenzDbMock.Role>final Map<String,AthenzDbMock.Service> final Set<com.yahoo.vespa.athenz.api.AthenzIdentity> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadmin(com.yahoo.vespa.athenz.api.AthenzIdentity identity) booleancheckAccess(com.yahoo.vespa.athenz.api.AthenzIdentity principal, String action, String resource) deleteTenantAdmin(com.yahoo.vespa.athenz.api.AthenzIdentity identity) booleanbooleanvoidSimulates establishing Vespa tenancy in Athens.tenantAdmin(com.yahoo.vespa.athenz.api.AthenzIdentity identity) withAttributes(Map<String, Object> attributes) withPolicy(String name, String principalRegex, String operation, String resource)
-
Field Details
-
name
public final com.yahoo.vespa.athenz.api.AthenzDomain name -
admins
-
tenantAdmins
-
applications
-
services
-
roles
-
policies
-
isVespaTenant
public boolean isVespaTenant -
attributes
-
-
Constructor Details
-
Domain
public Domain(com.yahoo.vespa.athenz.api.AthenzDomain name)
-
-
Method Details
-
admin
-
tenantAdmin
-
deleteTenantAdmin
-
withPolicy
public AthenzDbMock.Domain withPolicy(String name, String principalRegex, String operation, String resource) -
withAttributes
-
markAsVespaTenant
public void markAsVespaTenant()Simulates establishing Vespa tenancy in Athens. -
hasRole
-
hasPolicy
-
checkAccess
-