All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hyperledger.aries.api.present_proof.PresentationRequestCredentials Maven / Gradle / Ivy

There is a newer version: 0.10.0
Show newest version
/*
 * Copyright (c) 2020-2021 - for information on the respective copyright owner
 * see the NOTICE file and/or the repository at
 * https://github.com/hyperledger-labs/acapy-java-client
 *
 * SPDX-License-Identifier: Apache-2.0
 */
package org.hyperledger.aries.api.present_proof;

import com.google.gson.annotations.SerializedName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;
import java.util.Map;

/**
 * Model for:
 * @see IndyCredPrecisSchema
 */
@Data @NoArgsConstructor @AllArgsConstructor
public class PresentationRequestCredentials {

    @SerializedName(value = "cred_info", alternate = "credential_info")
    private CredentialInfo credentialInfo;

    private Interval interval;

    @SerializedName(value = "presentation_referents", alternate = "pres_referents")
    private List presentationReferents;

    @Data @NoArgsConstructor
    public static final class CredentialInfo {

        private String referent;

        private Map attrs;

        private String schemaId;

        @SerializedName(value = "cred_def_id", alternate = "credential_definition_id")
        private String credentialDefinitionId;

        private String revRegId;

        @SerializedName(value = "cred_rev_id")
        private String credRevId;

    }

    /**
     * Non-revocation interval from presentation request
     */
    @Data @NoArgsConstructor
    public static final class Interval {
        private Integer from;
        private Integer to;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy