blob: 61cd738314a069668d4e9067218e4258061b6bf4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// 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.security;
/**
* A service for retrieving secrets, such as API keys, private keys and passwords.
*
* @author mpolden
* @author bjorncs
*/
public interface KeyService {
String getSecret(String key);
default String getSecret(String key, int version) {
throw new UnsupportedOperationException("KeyService implementation does not support versioned secrets");
}
}
|