Box API Connection issue

New post


1 comment

  • Rui Barbosa

    Hi Sujeev,

    I'm not much of a java developer, but please do take a look at our box-java-sdk authentication documentation.

    The JWT authentication should be strait forward, not sure what you are using:

    Reader reader = new FileReader("src/example/config/config.json");
    BoxConfig boxConfig = BoxConfig.readFrom(reader);
    IAccessTokenCache tokenCache = new InMemoryLRUAccessTokenCache(100);
    BoxDeveloperEditionAPIConnection api = BoxDeveloperEditionAPIConnection.getAppEnterpriseConnection(boxConfig, tokenCache);

    Let us know if this helped.

    Best regards

    Comment actions Permalink

Please sign in to leave a comment.