blob: 66915a867fbd83903b17109212f1a0d383421385 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.container.jdisc.athenz;
import javax.net.ssl.SSLContext;
import java.nio.file.Path;
import java.security.PrivateKey;
import java.security.cert.X509Certificate;
import java.util.List;
/**
* @author mortent
*/
public interface AthenzIdentityProvider {
String domain();
String service();
SSLContext getIdentitySslContext();
SSLContext getRoleSslContext(String domain, String role);
String getRoleToken(String domain);
String getRoleToken(String domain, String role);
String getAccessToken(String domain);
String getAccessToken(String domain, List<String> roles);
String getAccessToken(String domain, List<String> roles, List<String> proxyPrincipal);
List<X509Certificate> getIdentityCertificate();
X509Certificate getRoleCertificate(String domain, String role);
PrivateKey getPrivateKey();
Path trustStorePath();
void deconstruct();
}
|