case class ConnectionCertificate(username: String, channel: String, chaincode: String, walletPath: Path, networkDescriptionPath: Path) extends ConnectionCertificateTrait with Product with Serializable
- Alphabetic
- By Inheritance
- ConnectionCertificate
- Serializable
- Product
- Equals
- ConnectionCertificateTrait
- ConnectionTrait
- AutoCloseable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new ConnectionCertificate(username: String, channel: String, chaincode: String, walletPath: Path, networkDescriptionPath: Path)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addCertificate(enrollmentID: String, certificate: String): String
Executes the "addCertificate" query.
Executes the "addCertificate" query.
- enrollmentID
Information about the enrollmentID to add.
- certificate
Information about the certificate to add.
- returns
Success_state
- Definition Classes
- ConnectionCertificate → ConnectionCertificateTrait
- Exceptions thrown
Exceptionif chaincode throws an exception.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val chaincode: String
- val channel: String
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def close(): Unit
- Definition Classes
- ConnectionTrait → AutoCloseable
- val contract: Contract
- Definition Classes
- ConnectionCertificate → ConnectionTrait
- final val contractName: String
- Definition Classes
- ConnectionCertificate → ConnectionTrait
- final def convertTransactionResult(result: Array[Byte]): String
Since the chain returns bytes, we need to convert them to a readable Result.
Since the chain returns bytes, we need to convert them to a readable Result.
- result
Bytes containing a result from a chaincode transaction.
- returns
Result as a String.
- Attributes
- protected
- Definition Classes
- ConnectionTrait
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- val gateway: Gateway
- Definition Classes
- ConnectionCertificate → ConnectionTrait
- def getCertificate(enrollmentId: String): String
Executes the "getCertificate" query.
Executes the "getCertificate" query.
- enrollmentId
enrollment.id to get information
- returns
JSon Course Object
- Definition Classes
- ConnectionCertificate → ConnectionCertificateTrait
- Exceptions thrown
Exceptionif chaincode throws an exception.
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def internalEvaluateTransaction(transactionId: String, params: String*): Array[Byte]
- Attributes
- protected
- Definition Classes
- ConnectionTrait
- Annotations
- @throws(scala.this.throws.<init>$default$1[de.upb.cs.uc4.hyperledger.exceptions.traits.HyperledgerExceptionTrait])
- final def internalSubmitTransaction(transient: Boolean, transactionId: String, params: String*): Array[Byte]
- Attributes
- protected
- Definition Classes
- ConnectionTrait
- Annotations
- @throws(scala.this.throws.<init>$default$1[de.upb.cs.uc4.hyperledger.exceptions.traits.HyperledgerExceptionTrait])
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val networkDescriptionPath: Path
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- 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
- ConnectionCertificate → ConnectionCertificateTrait
- Exceptions thrown
Exceptionif chaincode throws an exception.
- val username: String
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- val walletPath: Path
- final def wrapTransactionResult(transactionId: String, result: Array[Byte]): String
Wraps the chaincode query result bytes.
Wraps the chaincode query result bytes. Translates the byte-array to a string and throws an error if said string is not empty
- result
input byte-array to translate
- 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])