Packages

c

de.upb.cs.uc4.hyperledger.connections.cases

ConnectionCertificate

case class ConnectionCertificate(username: String, channel: String, chaincode: String, walletPath: Path, networkDescriptionPath: Path) extends ConnectionCertificateTrait with Product with Serializable

Linear Supertypes
Serializable, Product, Equals, ConnectionCertificateTrait, ConnectionTrait, AutoCloseable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ConnectionCertificate
  2. Serializable
  3. Product
  4. Equals
  5. ConnectionCertificateTrait
  6. ConnectionTrait
  7. AutoCloseable
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ConnectionCertificate(username: String, channel: String, chaincode: String, walletPath: Path, networkDescriptionPath: Path)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def addCertificate(enrollmentID: String, certificate: String): String

    Submits the "addCertificate" query.

    Submits the "addCertificate" query.

    enrollmentID

    Information about the enrollmentID to add.

    certificate

    Information about the certificate to add.

    returns

    Success_state

    Definition Classes
    ConnectionCertificateConnectionCertificateTrait
    Exceptions thrown

    HyperledgerExceptionTrait if hlf-framework throws an exception.

    TransactionExceptionTrait if chaincode throws an exception.

  5. def addOrUpdateCertificate(enrollmentID: String, enrollmentCertificate: String): String

    Stores a new certificate on the chain.

    Stores a new certificate on the chain. If no certificate for the user exists, we add it, else update.

    enrollmentID

    enrollmentID to add or update

    returns

    success_state

    Definition Classes
    ConnectionCertificateConnectionCertificateTrait
    Exceptions thrown

    HyperledgerExceptionTrait if hlf-framework throws an exception.

    TransactionExceptionTrait if chaincode throws an exception.

  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. val chaincode: String
  8. val channel: String
  9. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  10. final def close(): Unit
    Definition Classes
    ConnectionTrait → AutoCloseable
  11. val contract: ContractImpl
  12. final val contractName: String
  13. val draftContract: ContractImpl
  14. val draftContractName: String
    Definition Classes
    ConnectionTrait
  15. val draftGateway: GatewayImpl
  16. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  18. val gateway: GatewayImpl
  19. def getCertificate(enrollmentId: String): String

    Executes the "getCertificate" query.

    Executes the "getCertificate" query.

    enrollmentId

    enrollment.id to get information

    returns

    Certificate String

    Definition Classes
    ConnectionCertificateConnectionCertificateTrait
    Exceptions thrown

    HyperledgerExceptionTrait if hlf-framework throws an exception.

    TransactionExceptionTrait if chaincode throws an exception.

  20. final def getChaincodeVersion: String

    Gets the version returned by the designated contract.

    Gets the version returned by the designated contract. By default all contracts return the version of the chaincode.

    returns

    String containing versionInfo

    Definition Classes
    ConnectionTrait
  21. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  22. def getProposalAddCertificate(enrollmentID: String, certificate: String): (Array[Byte], String)

    Retrieves a proposal for the designated query Also submits the "addCertificate" query as current user (admin).

    Retrieves a proposal for the designated query Also submits the "addCertificate" query as current user (admin).

    enrollmentID

    Information about the enrollmentID to add.

    certificate

    Information about the certificate to add.

    returns

    Proposal and transactionId

    Definition Classes
    ConnectionCertificateConnectionCertificateTrait
    Exceptions thrown

    HyperledgerExceptionTrait if hlf-framework throws an exception.

    TransactionExceptionTrait if chaincode throws an exception.

  23. def getProposalGetCertificate(enrollmentID: String): (Array[Byte], String)

    Retrieves a proposal for the designated query Also submits the "getCertificate" query as current user (admin).

    Retrieves a proposal for the designated query Also submits the "getCertificate" query as current user (admin).

    enrollmentID

    enrollmentID to update

    returns

    Proposal and transactionId

    Definition Classes
    ConnectionCertificateConnectionCertificateTrait
    Exceptions thrown

    HyperledgerExceptionTrait if hlf-framework throws an exception.

    TransactionExceptionTrait if chaincode throws an exception.

  24. def getProposalUpdateCertificate(enrollmentID: String, certificate: String): (Array[Byte], String)

    Retrieves a proposal for the designated query Also submits the "updateCertificate" query as current user (admin).

    Retrieves a proposal for the designated query Also submits the "updateCertificate" query as current user (admin).

    enrollmentID

    enrollmentID to update

    certificate

    certificate to update

    returns

    Proposal and transactionId

    Definition Classes
    ConnectionCertificateConnectionCertificateTrait
    Exceptions thrown

    HyperledgerExceptionTrait if hlf-framework throws an exception.

    TransactionExceptionTrait if chaincode throws an exception.

  25. final def internalGetUnsignedProposal(transactionName: String, params: String*): (Array[Byte], String)
    Attributes
    protected
    Definition Classes
    ConnectionTrait
  26. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  27. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  28. val networkDescriptionPath: Path
  29. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  30. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  31. def productElementNames: Iterator[String]
    Definition Classes
    Product
  32. final def submitSignedProposal(proposalBytes: Array[Byte], signature: ByteString, transactionName: String, transactionId: String, params: String*): Array[Byte]
    Definition Classes
    ConnectionTrait
  33. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  34. def updateCertificate(enrollmentID: String, certificate: String): String

    Submits the "updateCertificate" query.

    Submits the "updateCertificate" query.

    enrollmentID

    enrollmentID to update

    certificate

    certificate to update

    returns

    success_state

    Definition Classes
    ConnectionCertificateConnectionCertificateTrait
    Exceptions thrown

    HyperledgerExceptionTrait if hlf-framework throws an exception.

    TransactionExceptionTrait if chaincode throws an exception.

  35. val username: String
  36. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  37. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  38. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  39. val walletPath: Path
  40. final def wrapEvaluateTransaction(transactionId: String, params: String*): String

    Wrapper for an evaluation transaction Translates the result byte-array to a string and throws an error if said string contains an error.

    Wrapper for an evaluation transaction Translates the result byte-array to a string and throws an error if said string contains an error.

    transactionId

    transaction to call

    params

    parameters to feed into transaction

    returns

    result as a string

    Attributes
    protected
    Definition Classes
    ConnectionTrait
    Annotations
    @throws(scala.this.throws.<init>$default$1[de.upb.cs.uc4.hyperledger.exceptions.traits.TransactionExceptionTrait]) @throws(scala.this.throws.<init>$default$1[de.upb.cs.uc4.hyperledger.exceptions.traits.HyperledgerExceptionTrait])
  41. final def wrapSubmitTransaction(transient: Boolean, transactionId: String, params: String*): String

    Wrapper for a submission transaction Translates the result byte-array to a string and throws an error if said string contains an error.

    Wrapper for a submission transaction Translates the result byte-array to a string and throws an error if said string contains an error.

    transient

    boolean flag to determine transaction to be transient or not.

    transactionId

    transaction to call

    params

    parameters to feed into transaction

    returns

    result as a string

    Attributes
    protected
    Definition Classes
    ConnectionTrait
    Annotations
    @throws(scala.this.throws.<init>$default$1[de.upb.cs.uc4.hyperledger.exceptions.traits.TransactionExceptionTrait]) @throws(scala.this.throws.<init>$default$1[de.upb.cs.uc4.hyperledger.exceptions.traits.HyperledgerExceptionTrait])

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from ConnectionTrait

Inherited from AutoCloseable

Inherited from AnyRef

Inherited from Any

Ungrouped