Azure active directory 使用adal4j注销

Azure active directory 使用adal4j注销,azure-active-directory,adal,Azure Active Directory,Adal,我应该如何使用adal4j实现注销?目前,我在这个库中没有看到任何这样做的方法。这是我的例子 AuthenticationContext context = new AuthenticationContext("https://login.windows.net/" + "test.onmicrosoft.com" + "/", true, service); try { final Future<AuthenticationRes

我应该如何使用adal4j实现注销?目前,我在这个库中没有看到任何这样做的方法。这是我的例子

        AuthenticationContext context = new AuthenticationContext("https://login.windows.net/" + "test.onmicrosoft.com" + "/", true, service);

        try {
            final Future<AuthenticationResult> resultFuture = context.acquireTokenByAuthorizationCode(
                    code, new URI(redirectUri), new ClientCredential(clientId, clientSecret), "https://graph.windows.net/", null);

            result = resultFuture.get();
        } catch (InterruptedException | ExecutionException e) {

        } catch (URISyntaxException e) {

        }
AuthenticationContext=新的AuthenticationContext(“https://login.windows.net/“+”test.onmicrosoft.com“+”/”,true,service);
试一试{
最终未来结果未来=context.acquireTokenByAuthorizationCode(
代码,新URI(重定向URI),新ClientCredential(clientId,clientSecret),”https://graph.windows.net/“,空);
result=resultFuture.get();
}捕获(中断异常|执行异常e){
}捕获(URISyntaxException e){
}

到目前为止似乎还没有人这样做。我将尝试使用HttpClient…一旦我使它工作,我将更新。同时,如果有人能告诉我其他的方法,我会很乐意尝试。