aboutsummaryrefslogtreecommitdiffstats
path: root/vespa-athenz/src/main/java/com/yahoo/vespa/athenz/identityprovider/api/DefaultSignedIdentityDocument.java
blob: c2ab22f4921b10682649d9f7d6ae948b0b9aee48 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.athenz.identityprovider.api;

public record DefaultSignedIdentityDocument(String signature, int signingKeyVersion, int documentVersion,
                                            String data, IdentityDocument identityDocument) implements SignedIdentityDocument {

    public DefaultSignedIdentityDocument {
        identityDocument = EntityBindingsMapper.fromIdentityDocumentData(data);
    }

    public DefaultSignedIdentityDocument(String signature, int signingKeyVersion, int documentVersion, String data) {
        this(signature,signingKeyVersion,documentVersion, data, null);
    }
}