Keycloak SPI to retrieve data from header

Hello.

I am exploring the possibility of creating an SPI to retrive some data from the http header. Can any of the default Keycloak SPI be used to achieve this?