Class BasePresExRecord
- java.lang.Object
-
- org.hyperledger.aries.api.present_proof.BasePresExRecord
-
- All Implemented Interfaces:
PresExStateTranslator
- Direct Known Subclasses:
PresentationExchangeRecord,V20PresExRecord
public abstract class BasePresExRecord extends Object implements PresExStateTranslator
Keeps track of fields that are common to both V1 abd V2 presentation exchanges.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBasePresExRecord.BasePresExRecordBuilder<C extends BasePresExRecord,B extends BasePresExRecord.BasePresExRecordBuilder<C,B>>
-
Constructor Summary
Constructors Modifier Constructor Description BasePresExRecord()BasePresExRecord(String createdAt, String updatedAt, Boolean autoPresent, Boolean autoVerify, Boolean trace, Boolean verified, String errorMsg, String connectionId, String presentationExchangeId, String threadId, PresentationExchangeInitiator initiator, PresentationExchangeRole role, PresentationExchangeState state)protectedBasePresExRecord(BasePresExRecord.BasePresExRecordBuilder<?,?> b)
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.hyperledger.aries.api.present_proof.PresExStateTranslator
roleIsProver, roleIsProverAndPresentationAcked, roleIsProverAndPresentationSent, roleIsProverAndProposalSent, roleIsProverAndRequestReceived, roleIsProverAndStateIsPresentationAckedOrDone, roleIsVerifier, roleIsVerifierAndDone, roleIsVerifierAndRequestSent, roleIsVerifierAndStateIsVerifiedOrDone, roleIsVerifierAndVerified, stateIsAbandoned, stateIsDone, stateIsPresentationAcked, stateIsPresentationReceived, stateIsPresentationSent, stateIsProposalReceived, stateIsProposalSent, stateIsRequestReceived, stateIsRequestSent, stateIsVerified
-
-
-
-
Constructor Detail
-
BasePresExRecord
protected BasePresExRecord(BasePresExRecord.BasePresExRecordBuilder<?,?> b)
-
BasePresExRecord
public BasePresExRecord()
-
BasePresExRecord
public BasePresExRecord(String createdAt, String updatedAt, Boolean autoPresent, Boolean autoVerify, Boolean trace, Boolean verified, String errorMsg, String connectionId, String presentationExchangeId, String threadId, PresentationExchangeInitiator initiator, PresentationExchangeRole role, PresentationExchangeState state)
-
-
Method Detail
-
getPresExId
public String getPresExId()
-
isVerified
public boolean isVerified()
-
initiatorIsSelf
public boolean initiatorIsSelf()
-
initiatorIsExternal
public boolean initiatorIsExternal()
-
versionIsV1
public boolean versionIsV1()
-
getVersion
public abstract ExchangeVersion getVersion()
-
getCreatedAt
public String getCreatedAt()
-
getUpdatedAt
public String getUpdatedAt()
-
getAutoPresent
public Boolean getAutoPresent()
-
getAutoVerify
public Boolean getAutoVerify()
-
getTrace
public Boolean getTrace()
-
getVerified
public Boolean getVerified()
-
getErrorMsg
public String getErrorMsg()
-
getConnectionId
public String getConnectionId()
-
getPresentationExchangeId
public String getPresentationExchangeId()
-
getThreadId
public String getThreadId()
-
getInitiator
public PresentationExchangeInitiator getInitiator()
-
getRole
public PresentationExchangeRole getRole()
- Specified by:
getRolein interfacePresExStateTranslator
-
getState
public PresentationExchangeState getState()
- Specified by:
getStatein interfacePresExStateTranslator
-
setCreatedAt
public void setCreatedAt(String createdAt)
-
setUpdatedAt
public void setUpdatedAt(String updatedAt)
-
setAutoPresent
public void setAutoPresent(Boolean autoPresent)
-
setAutoVerify
public void setAutoVerify(Boolean autoVerify)
-
setTrace
public void setTrace(Boolean trace)
-
setVerified
public void setVerified(Boolean verified)
-
setErrorMsg
public void setErrorMsg(String errorMsg)
-
setConnectionId
public void setConnectionId(String connectionId)
-
setPresentationExchangeId
public void setPresentationExchangeId(String presentationExchangeId)
-
setThreadId
public void setThreadId(String threadId)
-
setInitiator
public void setInitiator(PresentationExchangeInitiator initiator)
-
setRole
public void setRole(PresentationExchangeRole role)
-
setState
public void setState(PresentationExchangeState state)
-
canEqual
protected boolean canEqual(Object other)
-
-