*/
public class Standalone {
public static void main(String[] args) {
IniConfiguration config = new IniConfiguration();
//the following call will automatically use shiro.ini at the root of the classpath:
config.init();
//This is for Standalone (single-VM) applications that don't use a configuration container (Spring, JBoss, etc)
//See its JavaDoc for our feelings on this.
SecurityUtils.setSecurityManager(config.getSecurityManager());
//Now you are ready to access the Subject, as shown in the Quickstart:
Subject currentUser = SecurityUtils.getSubject();
//anything else you want to do with the Subject (see the Quickstart for examples).