Welcome to the new Box Support website. Check out all the details here on what’s changed.

Box API Connection issue

New post

Comments

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

    0
    Comment actions Permalink

Please sign in to leave a comment.