aboutsummaryrefslogtreecommitdiffstats
path: root/vespa-athenz/src/main/java/com/yahoo/vespa/athenz/identityprovider/api/IdentityDocumentClient.java
blob: 522f40bc37ddbaf6a8c3caaeef1e54cf13755103 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.athenz.identityprovider.api;

import java.util.List;
import java.util.Optional;
import java.util.OptionalInt;

/**
 * A client that communicates that fetches an identity document.
 *
 * @author bjorncs
 */
public interface IdentityDocumentClient {
    SignedIdentityDocument getNodeIdentityDocument(String host, int documentVersion);
    Optional<SignedIdentityDocument> getTenantIdentityDocument(String host, int documentVersion);
    List<String> getNodeRoles(String hostname);
}