All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.yahoo.vespa.hosted.controller.api.integration.aws.MockEnclaveAccessService Maven / Gradle / Ivy

There is a newer version: 8.253.3
Show newest version
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.controller.api.integration.aws;

import com.yahoo.config.provision.CloudAccount;

import java.util.Set;
import java.util.TreeSet;

/**
 * @author jonmv
 */
public class MockEnclaveAccessService implements EnclaveAccessService {

    private volatile Set currentAccounts = new TreeSet<>();

    public Set currentAccounts() { return currentAccounts; }

    @Override
    public double allowAccessFor(Set accounts) {
        currentAccounts = new TreeSet<>(accounts);
        return 1;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy