1 Reply Latest reply on Oct 24, 2005 6:14 AM by Darran Lofthouse

    Knowing Realm (JAAS) at runtime

    Thomas Joseph Newbie


      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);

      Any help in this regard is appreciated.

      Thanks in advance.