Package org.apache.shiro.concurrent

Examples of org.apache.shiro.concurrent.SubjectAwareExecutorService


    /**
     * Wrap the given executor so that it takes authentication-information and context are inherited to tasks when they
     * are submitted.
     */
    public static ExecutorService getSecurityContextAwareExecutor(ExecutorService original) {
        SubjectAwareExecutorService subjectAwareExecutor = new SubjectAwareExecutorService(original);
        return ThreadLocalUtil.contextAwareExecutor(subjectAwareExecutor);
    }
View Full Code Here

TOP

Related Classes of org.apache.shiro.concurrent.SubjectAwareExecutorService

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.