Need Java Code Examples For GCP Authentication

I have a java app that runs on GCP that needs to access secrets from Vault. I found this page: Google Cloud - Auth Methods | Vault by HashiCorp

It includes examples for GO and C#; but no Java example. I need a good working example that shows how to code the same in Java. An example that shows packages that need to be included and versions of jar files to include in my project would be extremely helpful.