datacraft-dsc / starfish-java

Developer Toolkit for the Data Ecosystem
3 stars 2 forks source link

Need an API which takes Account and DID and returns Agent Instance #128

Closed AyushVerma2 closed 4 years ago

AyushVerma2 commented 4 years ago

Need an API in Agent class probably as: Agent.withAccount(Account acc) ;// interface

AyushVerma2 commented 4 years ago

Updated the method to create remote agent . Now Remote Agent can be create by below three methods: // with DID and Remote Acc 1.RemoteAgent connect(Resolver resolver, DID did, RemoteAccount acc) ; // with resolver, DID and Remote account 2.connect(Resolver resolver, DID did, RemoteAccount acc) // with Agent url and Remote Account

  1. public static RemoteAgent connect(String url, RemoteAccount acc);