Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Shiro.ini file configuration but in Java class?

Tags:

java

shiro

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?

like image 708
quarks Avatar asked Dec 02 '14 07:12

quarks


2 Answers

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

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

like image 170
JanTheGun Avatar answered Oct 20 '22 19:10

JanTheGun


see Credentials Matching

or use jdbc custom realm here

like image 39
Kumar Avatar answered Oct 20 '22 21:10

Kumar