This is an example implementation of Google OAuth 2.0 with standard Spring of the Resource Server.
There is a blog post with explanation about the classes and how this is implemented and can be found here: http://blog.arnoldgalovics.com/2017/02/05/google-oauth-with-spring-security-as-separated-resource-server/
Should you have any questions, reach me out on Twitter.