Class V1CredentialExchange
- java.lang.Object
-
- org.hyperledger.aries.api.issue_credential_v1.BaseCredExRecord
-
- org.hyperledger.aries.api.issue_credential_v1.V1CredentialExchange
-
- All Implemented Interfaces:
CredExStateTranslator
public class V1CredentialExchange extends BaseCredExRecord
Result of a credential exchange. E.g. issueCredentialSend() or issueCredentialSendProposal()
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classV1CredentialExchange.CredentialOfferDictstatic classV1CredentialExchange.CredentialProposalDictstatic classV1CredentialExchange.V1CredentialExchangeBuilder<C extends V1CredentialExchange,B extends V1CredentialExchange.V1CredentialExchangeBuilder<C,B>>-
Nested classes/interfaces inherited from class org.hyperledger.aries.api.issue_credential_v1.BaseCredExRecord
BaseCredExRecord.BaseCredExRecordBuilder<C extends BaseCredExRecord,B extends BaseCredExRecord.BaseCredExRecordBuilder<C,B>>
-
-
Constructor Summary
Constructors Modifier Constructor Description V1CredentialExchange()V1CredentialExchange(Credential credential, IndyCredAbstract credentialOffer, V1CredentialExchange.CredentialOfferDict credentialOfferDict, V1CredentialExchange.CredentialProposalDict credentialProposalDict, IndyCredRequest credentialRequest, com.google.gson.JsonObject credentialRequestMetadata, IndyCredential rawCredential, String schemaId, String credentialDefinitionId, String credentialId, String revocRegId, String revocationId)protectedV1CredentialExchange(V1CredentialExchange.V1CredentialExchangeBuilder<?,?> b)
-
Method Summary
-
Methods inherited from class org.hyperledger.aries.api.issue_credential_v1.BaseCredExRecord
autoIssueEnabled, autoIssueOff, autoOfferEnabled, autoRemoveEnabled, getAutoIssue, getAutoOffer, getAutoRemove, getConnectionId, getCreatedAt, getCredentialExchangeId, getErrorMsg, getInitiator, getParentThreadId, getRole, getState, getThreadId, getTrace, getUpdatedAt, initiatorIsExternal, initiatorIsSelf, setAutoIssue, setAutoOffer, setAutoRemove, setConnectionId, setCreatedAt, setCredentialExchangeId, setErrorMsg, setInitiator, setParentThreadId, setRole, setState, setThreadId, setTrace, setUpdatedAt, toV1Builder
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.hyperledger.aries.api.issue_credential_v1.CredExStateTranslator
roleIsHolder, roleIsIssuer, stateIsAbandoned, stateIsCredentialAcked, stateIsCredentialIssued, stateIsCredentialReceived, stateIsDeclined, stateIsDone, stateIsNotDeclined, stateIsOfferReceived, stateIsOfferSent, stateIsProblem, stateIsProposalReceived, stateIsProposalSent, stateIsRequestReceived, stateIsRequestSent, stateIsRevoked
-
-
-
-
Constructor Detail
-
V1CredentialExchange
protected V1CredentialExchange(V1CredentialExchange.V1CredentialExchangeBuilder<?,?> b)
-
V1CredentialExchange
public V1CredentialExchange()
-
V1CredentialExchange
public V1CredentialExchange(Credential credential, IndyCredAbstract credentialOffer, V1CredentialExchange.CredentialOfferDict credentialOfferDict, V1CredentialExchange.CredentialProposalDict credentialProposalDict, IndyCredRequest credentialRequest, com.google.gson.JsonObject credentialRequestMetadata, IndyCredential rawCredential, String schemaId, String credentialDefinitionId, String credentialId, String revocRegId, String revocationId)
-
-
Method Detail
-
findAttributesInCredentialOfferDict
public Optional<Map<String,String>> findAttributesInCredentialOfferDict()
-
builder
public static V1CredentialExchange.V1CredentialExchangeBuilder<?,?> builder()
-
getCredential
public Credential getCredential()
-
getCredentialOffer
public IndyCredAbstract getCredentialOffer()
-
getCredentialOfferDict
public V1CredentialExchange.CredentialOfferDict getCredentialOfferDict()
-
getCredentialProposalDict
public V1CredentialExchange.CredentialProposalDict getCredentialProposalDict()
-
getCredentialRequest
public IndyCredRequest getCredentialRequest()
-
getCredentialRequestMetadata
public com.google.gson.JsonObject getCredentialRequestMetadata()
-
getRawCredential
public IndyCredential getRawCredential()
-
getSchemaId
public String getSchemaId()
-
getCredentialDefinitionId
public String getCredentialDefinitionId()
-
getCredentialId
public String getCredentialId()
-
getRevocRegId
public String getRevocRegId()
-
getRevocationId
public String getRevocationId()
-
setCredential
public void setCredential(Credential credential)
-
setCredentialOffer
public void setCredentialOffer(IndyCredAbstract credentialOffer)
-
setCredentialOfferDict
public void setCredentialOfferDict(V1CredentialExchange.CredentialOfferDict credentialOfferDict)
-
setCredentialProposalDict
public void setCredentialProposalDict(V1CredentialExchange.CredentialProposalDict credentialProposalDict)
-
setCredentialRequest
public void setCredentialRequest(IndyCredRequest credentialRequest)
-
setCredentialRequestMetadata
public void setCredentialRequestMetadata(com.google.gson.JsonObject credentialRequestMetadata)
-
setRawCredential
public void setRawCredential(IndyCredential rawCredential)
-
setSchemaId
public void setSchemaId(String schemaId)
-
setCredentialDefinitionId
public void setCredentialDefinitionId(String credentialDefinitionId)
-
setCredentialId
public void setCredentialId(String credentialId)
-
setRevocRegId
public void setRevocRegId(String revocRegId)
-
setRevocationId
public void setRevocationId(String revocationId)
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classBaseCredExRecord
-
canEqual
protected boolean canEqual(Object other)
- Overrides:
canEqualin classBaseCredExRecord
-
hashCode
public int hashCode()
- Overrides:
hashCodein classBaseCredExRecord
-
toString
public String toString()
- Overrides:
toStringin classBaseCredExRecord
-
-