kaevans/active-directory-java-deviceprofile
This sample demonstrates how to leverage ADAL4J to authenticate user calls to a web API (in this case, the directory Graph) from apps that do not have the capability of offering an interactive authentication experience.
JavaMIT