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
- val AFFILITATION: String
- Definition Classes
- ConnectionTrait
- 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
- ConnectionCertificate → ConnectionCertificateTrait
- Exceptions thrown
HyperledgerExceptionTraitif hlf-framework throws an exception.TransactionExceptionTraitif chaincode throws an exception.
- 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
- ConnectionCertificate → ConnectionCertificateTrait
- Exceptions thrown
HyperledgerExceptionTraitif hlf-framework throws an exception.TransactionExceptionTraitif chaincode throws an exception.
- def approvalConnection: Option[ConnectionApprovalsTrait]
- Definition Classes
- ConnectionTrait
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val chaincode: String
- Definition Classes
- ConnectionCertificate → ConnectionTrait
- val channel: String
- Definition Classes
- ConnectionCertificate → ConnectionTrait
- 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
- lazy val contract: ContractImpl
- Definition Classes
- ConnectionTrait
- final val contractName: String
- Definition Classes
- ConnectionCertificateTrait → 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])
- lazy val gateway: GatewayImpl
- Definition Classes
- ConnectionTrait
- def getCertificate(enrollmentId: String): String
Executes the "getCertificate" query.
Executes the "getCertificate" query.
- enrollmentId
enrollment.id to get information
- returns
Certificate String
- Definition Classes
- ConnectionCertificate → ConnectionCertificateTrait
- Exceptions thrown
HyperledgerExceptionTraitif hlf-framework throws an exception.TransactionExceptionTraitif chaincode throws an exception.
- 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
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getProposalAddCertificate(certificate: String, affiliation: String = AFFILITATION, enrollmentID: String, newCertificate: String): (String, Array[Byte])
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).
- certificate
Information about the certificate to add.
- enrollmentID
Information about the enrollmentID to add.
- returns
Proposal and transactionId
- Definition Classes
- ConnectionCertificate → ConnectionCertificateTrait
- Exceptions thrown
HyperledgerExceptionTraitif hlf-framework throws an exception.TransactionExceptionTraitif chaincode throws an exception.
- def getProposalGetCertificate(certificate: String, affiliation: String = AFFILITATION, enrollmentID: String): (String, Array[Byte])
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
- ConnectionCertificate → ConnectionCertificateTrait
- Exceptions thrown
HyperledgerExceptionTraitif hlf-framework throws an exception.TransactionExceptionTraitif chaincode throws an exception.
- def getProposalUpdateCertificate(certificate: String, affiliation: String = AFFILITATION, enrollmentID: String, newCertificate: String): (String, Array[Byte])
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).
- certificate
certificate to update
- enrollmentID
enrollmentID to update
- returns
Proposal and transactionId
- Definition Classes
- ConnectionCertificate → ConnectionCertificateTrait
- Exceptions thrown
HyperledgerExceptionTraitif hlf-framework throws an exception.TransactionExceptionTraitif chaincode throws an exception.
- def getUnsignedTransaction(proposalBytes: Array[Byte], signatureBytes: Array[Byte]): Array[Byte]
- Definition Classes
- ConnectionTrait
- final def internalGetUnsignedProposal(certificate: String, affiliation: String, transactionName: String, params: String*): (String, Array[Byte])
- Attributes
- protected
- Definition Classes
- ConnectionTrait
- def internalSubmitRealTransactionFromApprovalProposal(params: Seq[String]): String
- Definition Classes
- ConnectionTrait
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val networkDescriptionPath: Path
- Definition Classes
- ConnectionCertificate → ConnectionTrait
- 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
- def submitSignedTransaction(transactionBytes: Array[Byte], signature: Array[Byte]): (String, String)
- Definition Classes
- ConnectionTrait
- 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
HyperledgerExceptionTraitif hlf-framework throws an exception.TransactionExceptionTraitif chaincode throws an exception.
- val username: String
- Definition Classes
- ConnectionCertificate → ConnectionTrait
- 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
- Definition Classes
- ConnectionCertificate → ConnectionTrait
- final def wrapEvaluateTransaction(transactionName: 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.
- transactionName
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])
- final def wrapSubmitTransaction(transient: Boolean, transactionName: 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.
- transactionName
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])