Class V1CredentialProposalRequest


  • public class V1CredentialProposalRequest
    extends Object
    Credential that is requested from a connection (holder to issuer), or issued to a connection (issuer to holder)
    • 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 id
        credentialDefinitionId - the credential definition id
        instance - 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

      • 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)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object