Greetings,
Is there anyway to know at runtime the JAAS Security Realm under which my application is running.
This Realm is the "application polity name" in login-config.xml.
Actually I dont want to hard code the realm to the LoginContext:
... LoginContext ctxt = new LoginContext("myRealm", callbackHandler); ... ...
Can you describe a bit more what you are actually doing? Where is this code going to be called that you have included in the post?