interface PresentProofService
createPresentation |
Creates the presentation message for the present proof record based on RequestedCredentials abstract fun createPresentation(agent: Agent, proofId: String, requestedCredentials: RequestedCredentials): Single<Pair<PresentationResponseMessage, AcceptedRequest>> |
createPresentationProposal |
Creates a presentation proposal message. This allows the prover to begin the present proof protocol or respond to a presentation request to propose using a different presentation. abstract fun createPresentationProposal(agent: Agent, proofProposal: PresentProofProposal, connectionContext: ConnectionContext): Single<PresentationProposalMessage> |
deleteProof |
Deletes the proof abstract fun deleteProof(agent: Agent, recordId: String): Completable |
getProof |
Gets the present proof record abstract fun getProof(agent: Agent, proofId: String): Single<ProofRecord> |
getProofs |
Retrieves a list of ProofRecord items for the given search criteria. abstract fun getProofs(agent: Agent, query: SearchQuery, count: Int): Single<List<ProofRecord>>
Retrieves a list of ProofRecord items without any query conditions with max size 100. abstract fun getProofs(agent: Agent): Single<List<ProofRecord>> |
listCredentialsForProofRequest |
Get list of Credential for given ProofRequest abstract fun listCredentialsForProofRequest(agent: Agent, proofRequest: ProofRequest, itemReferent: String): Single<List<Credential>> |
processAckPresentationReceived |
Processes the given acknowledge presentation message. abstract fun processAckPresentationReceived(agent: Agent, presentationAckMessage: PresentationAckMessage): Single<AckPresentationReceived> |
processPresentationRequest |
Processes the given presentation request message. The agent owner should decide whether to reveal the requested data. This function only saves the presentation request data to the wallet. abstract fun processPresentationRequest(agent: Agent, request: PresentationRequestMessage, connectionContext: ConnectionContext): Single<ReceivedRequest> |
rejectReceivedRequest |
Rejects the received proof request by recordId abstract fun rejectReceivedRequest(agent: Agent, recordId: String): Completable |
DefaultPresentProofService |
class DefaultPresentProofService : PresentProofService |