InfraDIDCommAgent class
Represents an InfraDIDComm agent that can connect to other agents and exchange messages.
Constructors
- InfraDIDCommAgent.new({required String url, required String did, required String mnemonic, required String role})
- Creates a new instance of InfraDIDCommAgent.
Properties
- did ↔ String
-
getter/setter pair
- didAuthCallback ↔ bool Function(String peerDID)
-
getter/setter pair
- didAuthFailedCallback ↔ dynamic Function(String peerDID)
-
getter/setter pair
- didConnectedCallback ↔ dynamic Function(String peerDID)
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDIDConnected ↔ bool
-
getter/setter pair
- isReceivedDIDAuthInit ↔ bool
-
getter/setter pair
- mnemonic ↔ String
-
getter/setter pair
-
peerInfo
↔ Map<
String, String> -
getter/setter pair
- role ↔ String
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- socket ↔ Socket
-
getter/setter pair
-
socketId
→ Future<
String?> -
no setter
- url ↔ String
-
getter/setter pair
- vpChallenge ↔ String
-
getter/setter pair
- vpLaterCallbackEndpoint ↔ String
-
getter/setter pair
- vpRejectCallback ↔ dynamic Function(RejectRequestVPMessage message)
-
getter/setter pair
-
vpRequestCallback
↔ Future<
Map< Function(List<String, dynamic> >RequestVC> requestVCs, String challenge) -
getter/setter pair
- vpSubmitLaterResCallback ↔ dynamic Function(SubmitVPLaterResponseMessage message)
-
getter/setter pair
- vpSubmitResCallback ↔ dynamic Function(SubmitVPResponseMessage message)
-
getter/setter pair
-
vpVerifyCallback
↔ bool Function(Map<
String, dynamic> vp) -
getter/setter pair
Methods
-
changeRole(
String newRole) → void -
connect(
) → dynamic - Connects the agent to the server.
-
disconnect(
) → dynamic - Disconnects the agent from the server.
-
init(
) → dynamic - Initializes the agent by setting up message handling and connecting to the server.
-
initWithConnectRequest(
String encoded) → dynamic - Initializes the agent with a connect request message and connects to the server.
-
initWithDIDRequestMessageLoop(
Context context, int loopTimeSeconds, dynamic loopCallback(String encodedMessage)) → dynamic - Initializes the agent with a DID request message loop and connects to the server.
-
initWithStaticConnectRequest(
String serviceEndpoint, Context context, {String? peerDID, bool didVerification(String peerDID)?}) → dynamic - Initializes the agent with a static connect request message and connects to the server.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onMessage(
) → void - Sets up the message handling for the agent.
-
reset(
) → dynamic - Resets the agent by clearing peer information and flags.
-
sendDIDAuthInitMessage(
String encoded) → Future< void> - Sends a DID authentication initialization message to a receiver agent.
-
sendVPRequestMessage(
List< RequestVC> vcRequirements, String challenge) → Future<void> -
setDIDAuthCallback(
bool callback(String peerDID)) → void - Sets the callback function to be called when a DID authentication request is received.
-
setDIDAuthFailedCallback(
dynamic callback(String peerDID)) → void - Sets the callback function to be called when a DID authentication fails with a peer agent.
-
setDIDConnectedCallback(
dynamic callback(String peerDID)) → void - Sets the callback function to be called when a DID connection is established with a peer agent.
-
setVPLaterCallbackEndpoint(
String vpLaterCallbackEndpoint) → void -
setVPRejectCallback(
dynamic callback(RejectRequestVPMessage message)) → void -
setVPRequestCallback(
Future< Map< callback(List<String, dynamic> >RequestVC> requestVCs, String challenge)) → void -
setVPSubmitLaterResCallback(
dynamic callback(SubmitVPLaterResponseMessage message)) → void -
setVPSubmitResCallback(
dynamic callback(SubmitVPResponseMessage message)) → void -
setVPVerifyCallback(
bool callback(Map< String, dynamic> vp)) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited