aboutsummaryrefslogtreecommitdiffstats
path: root/configserver/src/main/java/com/yahoo/vespa/config/server/application/ActiveTokenFingerprints.java
blob: 2649de27c5e6281ffb68bd0ae4dab70718309dbf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.config.server.application;

import com.yahoo.vespa.config.server.modelfactory.ModelResult;

import java.util.List;
import java.util.Map;

/**
 * @author jonmv
 */
public interface ActiveTokenFingerprints {

    /** Lists all active tokens and their fingerprints for each token-enabled container host in the application, that is currently up. */
    Map<String, List<Token>> get(ModelResult application);

    record Token(String id, List<String> fingerprints) { }

}