Package org.apache.shiro.config

Examples of org.apache.shiro.config.IniConfiguration


*/
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).
View Full Code Here


*/
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).
View Full Code Here

TOP

Related Classes of org.apache.shiro.config.IniConfiguration

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.