Class AthenzAccessControlService

    • Constructor Detail

      • AthenzAccessControlService

        public AthenzAccessControlService​(com.yahoo.vespa.athenz.client.zms.ZmsClient zmsClient,
                                          com.yahoo.vespa.athenz.api.AthenzDomain domain,
                                          com.yahoo.vespa.athenz.client.zms.ZmsClient vespaZmsClient)
    • Method Detail

      • hasPendingAccessRequests

        public boolean hasPendingAccessRequests​(com.yahoo.config.provision.TenantName tenantName)
        Specified by:
        hasPendingAccessRequests in interface AccessControlService
        Returns:
        Whether the ssh access role has any pending role membership requests
      • approveSshAccess

        public boolean approveSshAccess​(com.yahoo.config.provision.TenantName tenantName,
                                        Instant expiry,
                                        com.yahoo.vespa.athenz.api.OAuthCredentials oAuthCredentials)
        Specified by:
        approveSshAccess in interface AccessControlService
        Returns:
        true if access has been granted - false if already member
      • requestSshAccess

        public boolean requestSshAccess​(com.yahoo.config.provision.TenantName tenantName)
        Specified by:
        requestSshAccess in interface AccessControlService
        Returns:
        true if access has been requested - false if already member
      • isVespaTeamMember

        public boolean isVespaTeamMember​(com.yahoo.vespa.athenz.api.AthenzUser user)