Class PresentProofProposalBuilder

    • Constructor Detail

      • PresentProofProposalBuilder

        public PresentProofProposalBuilder()
    • Method Detail

      • fromCredential

        public static PresentProofProposal fromCredential​(@NonNull
                                                          @NonNull String connectionId,
                                                          @NonNull
                                                          @NonNull Credential cred)
        Usecase: send a single wallet credential to a connection. Auto present is set to true, as the flow is initiated with a specific credential anyway.
        Parameters:
        connectionId - the connection id
        cred - Credential
        Returns:
        simple PresentProofProposal without any predicates set
      • v2IndyFromCredential

        public static V20PresProposalRequest v2IndyFromCredential​(@NonNull
                                                                  @NonNull String connectionId,
                                                                  @NonNull
                                                                  @NonNull Credential cred,
                                                                  String requestName)
        A v2 indy presentation proposal is build upon a proof request
        Parameters:
        connectionId - the connection id
        cred - Credential
        requestName - optional name of the proof request
        Returns:
        V20PresProposalRequest