Class V1CredentialProposalRequest
- java.lang.Object
-
- org.hyperledger.aries.api.issue_credential_v1.V1CredentialProposalRequest
-
public class V1CredentialProposalRequest extends Object
Credential that is requested from a connection (holder to issuer), or issued to a connection (issuer to holder)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classV1CredentialProposalRequest.V1CredentialProposalRequestBuilder
-
Constructor Summary
Constructors Constructor Description V1CredentialProposalRequest()V1CredentialProposalRequest(@NonNull String connectionId, @NonNull String credentialDefinitionId, T instance)Constructor used when issuing a credential via issueCredentialSend()V1CredentialProposalRequest(Boolean autoOffer, Boolean autoRemove, String comment, @NonNull String connectionId, String credentialDefinitionId, CredentialPreview credentialProposal, String issuerDid, String schemaId, String schemaIssuerDid, String schemaName, String schemaVersion, Boolean trace)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static V1CredentialProposalRequest.V1CredentialProposalRequestBuilderbuilder()protected booleancanEqual(Object other)booleanequals(Object o)BooleangetAutoOffer()Holder choice to auto accept offer in this credential exchange (overrides --auto-respond-credential-offer configuration setting)BooleangetAutoRemove()Whether to remove the credential exchange record on completion (overrides --preserve-exchange-records configuration setting)StringgetComment()@NonNull StringgetConnectionId()StringgetCredentialDefinitionId()CredentialPreviewgetCredentialProposal()Optional when sending the issuer a proposal, mandatory when sending the holder a credentialStringgetIssuerDid()StringgetSchemaId()StringgetSchemaIssuerDid()StringgetSchemaName()StringgetSchemaVersion()BooleangetTrace()inthashCode()voidsetAutoOffer(Boolean autoOffer)Holder choice to auto accept offer in this credential exchange (overrides --auto-respond-credential-offer configuration setting)voidsetAutoRemove(Boolean autoRemove)Whether to remove the credential exchange record on completion (overrides --preserve-exchange-records configuration setting)voidsetComment(String comment)voidsetConnectionId(@NonNull String connectionId)voidsetCredentialDefinitionId(String credentialDefinitionId)voidsetCredentialProposal(CredentialPreview credentialProposal)Optional when sending the issuer a proposal, mandatory when sending the holder a credentialvoidsetIssuerDid(String issuerDid)voidsetSchemaId(String schemaId)voidsetSchemaIssuerDid(String schemaIssuerDid)voidsetSchemaName(String schemaName)voidsetSchemaVersion(String schemaVersion)voidsetTrace(Boolean trace)StringtoString()
-
-
-
Constructor Detail
-
V1CredentialProposalRequest
public V1CredentialProposalRequest(@NonNull @NonNull String connectionId, @NonNull @NonNull String credentialDefinitionId, @NonNull T instance)Constructor used when issuing a credential via issueCredentialSend()- Type Parameters:
T- type- Parameters:
connectionId- the connection idcredentialDefinitionId- the credential definition idinstance- instance template
-
V1CredentialProposalRequest
public V1CredentialProposalRequest()
-
V1CredentialProposalRequest
public V1CredentialProposalRequest(Boolean autoOffer, @Nullable Boolean autoRemove, @Nullable String comment, @NonNull @NonNull String connectionId, @Nullable String credentialDefinitionId, @Nullable CredentialPreview credentialProposal, @Nullable String issuerDid, @Nullable String schemaId, @Nullable String schemaIssuerDid, @Nullable String schemaName, @Nullable String schemaVersion, @Nullable Boolean trace)
-
-
Method Detail
-
builder
public static V1CredentialProposalRequest.V1CredentialProposalRequestBuilder builder()
-
getAutoOffer
public Boolean getAutoOffer()
Holder choice to auto accept offer in this credential exchange (overrides --auto-respond-credential-offer configuration setting)
-
getAutoRemove
@Nullable public Boolean getAutoRemove()
Whether to remove the credential exchange record on completion (overrides --preserve-exchange-records configuration setting)
-
getComment
@Nullable public String getComment()
-
getConnectionId
@NonNull public @NonNull String getConnectionId()
-
getCredentialDefinitionId
@Nullable public String getCredentialDefinitionId()
-
getCredentialProposal
@Nullable public CredentialPreview getCredentialProposal()
Optional when sending the issuer a proposal, mandatory when sending the holder a credential
-
getIssuerDid
@Nullable public String getIssuerDid()
-
getSchemaId
@Nullable public String getSchemaId()
-
getSchemaIssuerDid
@Nullable public String getSchemaIssuerDid()
-
getSchemaName
@Nullable public String getSchemaName()
-
getSchemaVersion
@Nullable public String getSchemaVersion()
-
getTrace
@Nullable public Boolean getTrace()
-
setAutoOffer
public void setAutoOffer(Boolean autoOffer)
Holder choice to auto accept offer in this credential exchange (overrides --auto-respond-credential-offer configuration setting)
-
setAutoRemove
public void setAutoRemove(@Nullable Boolean autoRemove)Whether to remove the credential exchange record on completion (overrides --preserve-exchange-records configuration setting)
-
setComment
public void setComment(@Nullable String comment)
-
setConnectionId
public void setConnectionId(@NonNull @NonNull String connectionId)
-
setCredentialDefinitionId
public void setCredentialDefinitionId(@Nullable String credentialDefinitionId)
-
setCredentialProposal
public void setCredentialProposal(@Nullable CredentialPreview credentialProposal)Optional when sending the issuer a proposal, mandatory when sending the holder a credential
-
setIssuerDid
public void setIssuerDid(@Nullable String issuerDid)
-
setSchemaId
public void setSchemaId(@Nullable String schemaId)
-
setSchemaIssuerDid
public void setSchemaIssuerDid(@Nullable String schemaIssuerDid)
-
setSchemaName
public void setSchemaName(@Nullable String schemaName)
-
setSchemaVersion
public void setSchemaVersion(@Nullable String schemaVersion)
-
setTrace
public void setTrace(@Nullable Boolean trace)
-
canEqual
protected boolean canEqual(Object other)
-
-