Level up your Box knowledge with brand new learning paths on Box University. Visit training.box.com to get started

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.