How can I obtain KeycloakSecurityContext in case of Desktop applications
(KeycloakInstalled adapter).
I read the documentation for KeycloakSecurityContext
https://www.keycloak.org/docs/3.3/authorization_services/topics/enforcer/...
but it relies on servlet request.
How can I obtain KeycloakSecurityContext if I am using keycloak to secure
my desktop apps using keycloakinstalledadpater?
I need it as my desktop apps interact with a server through RMI and I want
to be able to do authorization on these calls.