I have a Spring Boot 2 application, which uses OAuth2, and relays its bearer tokens to all the REST services it calls. Amongst these services, stands a legacy Java 6 webapp that doesn't use Spring. I would like to know if it is possible to validate a bearer token in this legacy app, knowing the OAuth2 server's public key.