Pure java implementation of OAuth2 process