Search code examples
javashiro

Shiro.ini file configuration but in Java class?


I want to know if its possible to configure Shiro without the shiro.ini file, I mean, instead of using the INI file, what if I need to make the Shiro config to be hardcoded in a Java class?


Solution

  • Yes it is possible. The documentation says how to do it:

    http://shiro.apache.org/configuration.html#Configuration-ProgrammaticConfiguration