blob: 4767b5846618ede65852c5fedb46777e3b820912 (
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
30
31
32
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.athenz.client.zms.bindings;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonGetter;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* @author freva
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class ServicePublicKeyEntity {
public final String id;
public final String key;
@JsonCreator
public ServicePublicKeyEntity(@JsonProperty("id") String id, @JsonProperty("key") String key) {
this.id = id;
this.key = key;
}
@JsonGetter("id")
public String name() {
return id;
}
@JsonGetter("key")
public String key() {
return key;
}
}
|