Skip to content

Instantly share code, notes, and snippets.

@ogrebgr
Created February 18, 2018 06:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ogrebgr/bccb1526dfadee46f8b992deebfc719e to your computer and use it in GitHub Desktop.
Save ogrebgr/bccb1526dfadee46f8b992deebfc719e to your computer and use it in GitHub Desktop.
Safenetwork java bindings test
public class Test {
public static void main(String[] args) {
Session.load();
AppExchangeInfo aei = new AppExchangeInfo("net.maidsafe.java.test",
null,
"presni",
"ACME inc.");
AuthReq authReq = new AuthReq(aei, true, null, 0, 0);
try {
Request req = BaseSession.getAuthRequest(authReq).get();
} catch (InterruptedException e) {
e.printStackTrace();
} catch (ExecutionException e) {
e.printStackTrace();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment