blob: 0853b3aa71b6a8798ffb5081696c8d4533153080 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// Copyright Vespa.ai. 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(); }
}
|