org.hyperledger.aries.api.present_proof.PresentationRequestCredentials Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aries-client-python Show documentation
Show all versions of aries-client-python Show documentation
Aries Cloud Agent - Python: Java client implementation
/*
* 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