aboutsummaryrefslogtreecommitdiffstats
path: root/vespa-athenz/src/main/java/com/yahoo/vespa/athenz/identityprovider/api/IdentityDocument.java
diff options
context:
space:
mode:
authorMorten Tokle <mortent@yahooinc.com>2023-04-28 14:09:08 +0200
committerMorten Tokle <mortent@yahooinc.com>2023-04-28 14:09:08 +0200
commitd55f01b8fed996e30ce5c75b2b2c869a8afefad4 (patch)
treef16104dfb36962138dee5861ab102ff6c5e0008a /vespa-athenz/src/main/java/com/yahoo/vespa/athenz/identityprovider/api/IdentityDocument.java
parent2e8ce5dae6330774ca69b679370f56447b129c89 (diff)
Add separate api to fetch roles
Diffstat (limited to 'vespa-athenz/src/main/java/com/yahoo/vespa/athenz/identityprovider/api/IdentityDocument.java')
-rw-r--r--vespa-athenz/src/main/java/com/yahoo/vespa/athenz/identityprovider/api/IdentityDocument.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/vespa-athenz/src/main/java/com/yahoo/vespa/athenz/identityprovider/api/IdentityDocument.java b/vespa-athenz/src/main/java/com/yahoo/vespa/athenz/identityprovider/api/IdentityDocument.java
index 7caa4555f25..c7517ef8adb 100644
--- a/vespa-athenz/src/main/java/com/yahoo/vespa/athenz/identityprovider/api/IdentityDocument.java
+++ b/vespa-athenz/src/main/java/com/yahoo/vespa/athenz/identityprovider/api/IdentityDocument.java
@@ -18,7 +18,7 @@ import java.util.Set;
public record IdentityDocument(VespaUniqueInstanceId providerUniqueId, AthenzService providerService, String configServerHostname,
String instanceHostname, Instant createdAt, Set<String> ipAddresses,
IdentityType identityType, ClusterType clusterType, String ztsUrl,
- AthenzIdentity serviceIdentity, List<String> roles, Map<String, Object> unknownAttributes) {
+ AthenzIdentity serviceIdentity, Map<String, Object> unknownAttributes) {
public IdentityDocument {
ipAddresses = Set.copyOf(ipAddresses);
@@ -29,14 +29,13 @@ public record IdentityDocument(VespaUniqueInstanceId providerUniqueId, AthenzSer
});
// Map.copyOf() does not allow null values
unknownAttributes = Map.copyOf(nonNull);
- roles = Optional.ofNullable(roles).orElse(List.of());
}
public IdentityDocument(VespaUniqueInstanceId providerUniqueId, AthenzService providerService, String configServerHostname,
String instanceHostname, Instant createdAt, Set<String> ipAddresses,
IdentityType identityType, ClusterType clusterType, String ztsUrl,
- AthenzIdentity serviceIdentity, List<String> roles) {
- this(providerUniqueId, providerService, configServerHostname, instanceHostname, createdAt, ipAddresses, identityType, clusterType, ztsUrl, serviceIdentity, roles, Map.of());
+ AthenzIdentity serviceIdentity) {
+ this(providerUniqueId, providerService, configServerHostname, instanceHostname, createdAt, ipAddresses, identityType, clusterType, ztsUrl, serviceIdentity, Map.of());
}
@@ -52,7 +51,6 @@ public record IdentityDocument(VespaUniqueInstanceId providerUniqueId, AthenzSer
this.clusterType,
this.ztsUrl,
athenzService,
- roles,
this.unknownAttributes);
}
}