blob: 9c29e2d92ef3c6fae685e1c6c81fb05f979c760e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.athenz.api;
import java.net.URI;
/**
* @author bjorncs
*/
public interface AthenzIdentity {
AthenzDomain getDomain();
String getName();
default URI spiffeUri() {
return URI.create("spiffe://%s/sa/%s".formatted(getDomainName(), getName()));
}
default String getFullName() {
return getDomain().getName() + "." + getName();
}
default String getDomainName() { return getDomain().getName(); }
}
|