summaryrefslogtreecommitdiffstats
path: root/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/athenz/ZmsKeystore.java
blob: e2cb38a8466e741bd7018a58151424865a37428b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.controller.api.integration.athenz;

import java.security.PublicKey;
import java.util.Optional;

/**
 * @author bjorncs
 */
public interface ZmsKeystore {

    Optional<PublicKey> getPublicKey(AthenzService service, String keyId);

    default void preloadKeys(AthenzService service) { /* Default implementation is noop */ }

}