I'm using Adal4j Java library.I already have a refresh token but would like to get access token based on the refresh token.
I have the following code and I couldn't figure out how to define AuthenticationCallback
ExecutorService service = Executors.newFixedThreadPool(1);
AuthenticationContext context = new AuthenticationContext(authority, true, service);
context.acquireTokenByRefreshToken(resultFuture.get().getRefreshToken(), new ClientCredential("8a6....4b6", "J5....EU="), ?????? );
How do I define AuthenticationCallback ?