aboutsummaryrefslogtreecommitdiffstats
path: root/vespa-athenz/src/main/java/com/yahoo/vespa/athenz/client/zts/bindings/IdentityRefreshRequestEntity.java
blob: ed928b45ee0498a6b0dc2dcef9bc86fdc98fb783 (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
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.athenz.client.zts.bindings;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.yahoo.vespa.athenz.client.common.serializers.Pkcs10CsrSerializer;
import com.yahoo.security.Pkcs10Csr;

/**
 * @author bjorncs
 */
public class IdentityRefreshRequestEntity {

    @JsonProperty("csr") @JsonSerialize(using = Pkcs10CsrSerializer.class)
    private final Pkcs10Csr csr;

    @JsonProperty("keyId")
    private final String keyId;

    public IdentityRefreshRequestEntity(Pkcs10Csr csr, String keyId) {
        this.csr = csr;
        this.keyId = keyId;
    }
}