Get security context (access token) of current user inside SPI

Is it possible to get security context (specifically the access token) of current user inside SPI?
I’m interacting with a jms broker and want to push the security context to the message.

Check the tokens method at: https://www.keycloak.org/docs-api/11.0/javadocs/org/keycloak/models/KeycloakSession.html you should have this available at a SPI:https://www.keycloak.org/docs/latest/server_development/index.html#_providers

Hope it helps!