Class PresentProofProposalBuilder
- java.lang.Object
-
- org.hyperledger.aries.api.present_proof.PresentProofProposalBuilder
-
public class PresentProofProposalBuilder extends Object
Helper class to build aPresentProofProposal
-
-
Constructor Summary
Constructors Constructor Description PresentProofProposalBuilder()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PresentProofProposalfromCredential(@NonNull String connectionId, @NonNull Credential cred)Usecase: send a single wallet credential to a connection.static V20PresProposalRequestv2IndyFromCredential(@NonNull String connectionId, @NonNull Credential cred, String requestName)A v2 indy presentation proposal is build upon a proof request
-
-
-
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 idcred-Credential- Returns:
- simple
PresentProofProposalwithout 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 idcred-CredentialrequestName- optional name of the proof request- Returns:
V20PresProposalRequest
-
-