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

org.hyperledger.aries.api.present_proof.PresentationRequest 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 lombok.Builder;
import lombok.Data;

import java.util.HashMap;
import java.util.Map;

@Data @Builder
public class PresentationRequest {

    private Boolean trace;

    @Builder.Default
    private Map requestedPredicates = new HashMap<>();

    @Builder.Default
    private Map selfAttestedAttributes = new HashMap<>();

    @Builder.Default
    private Map requestedAttributes = new HashMap<>();

    @Data @Builder
    public static final class IndyRequestedCredsRequestedPred {
        private String credId;
        private Integer timestamp;
    }

    @Data @Builder
    public static final class IndyRequestedCredsRequestedAttr {
        private Boolean revealed;
        private String credId;
        private Integer timestamp;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy