blob: f64b2c765a5ebda542d7430ec40d7b96f1513c9f (
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 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.container.jdisc.athenz.impl;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Used for deserializing response from ZTS
*
* @author mortent
*/
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class InstanceIdentity {
@JsonProperty("x509Certificate") private final String x509Certificate;
@JsonProperty("serviceToken") private final String serviceToken;
public InstanceIdentity(@JsonProperty("x509Certificate") String x509Certificate,
@JsonProperty("serviceToken") String serviceToken) {
this.x509Certificate = x509Certificate;
this.serviceToken = serviceToken;
}
public String getX509Certificate() {
return x509Certificate;
}
public String getServiceToken() {
return serviceToken;
}
}
|