public class Context
extends java.lang.Object
getStub()
Applications can implement their own versions if they wish to add functionality. All subclasses MUST implement a constructor, for example
public MyContext extends Context {
public MyContext(ChaincodeStub stub) {
super(stub);
}
}
Modifier and Type | Field and Description |
---|---|
protected ClientIdentity |
clientIdentity |
protected ChaincodeStub |
stub |
Constructor and Description |
---|
Context(ChaincodeStub stub)
Creates new client identity and sets it as a property of the stub.
|
Modifier and Type | Method and Description |
---|---|
ClientIdentity |
getClientIdentity() |
ChaincodeStub |
getStub() |
protected ChaincodeStub stub
protected ClientIdentity clientIdentity
public Context(ChaincodeStub stub)
stub
- Instance of the ChaincodeStub
to usepublic ChaincodeStub getStub()
public ClientIdentity getClientIdentity()