Examples of EZBSecurityCurrent


Examples of org.ow2.easybeans.security.api.EZBSecurityCurrent

     */
    public boolean commit() throws LoginException {


        // Gets the current
        EZBSecurityCurrent current = SecurityCurrent.getCurrent();

        // Build a new security context
        EZBSecurityContext context = new SecurityContext(this.subject);

        // Set it globally or in the current thread
        if (this.globalContext) {
            SecurityCurrent.setGlobalSecurityContext(context);
        } else {
            current.setSecurityContext(context);
        }

        return true;
    }
View Full Code Here

Examples of org.ow2.easybeans.security.api.EZBSecurityCurrent

        // Build a new anonymous context
        SecurityContext context = new SecurityContext(SecurityContext.ANONYMOUS_SUBJECT);

        // Gets the current
        EZBSecurityCurrent current = SecurityCurrent.getCurrent();

        // Set it globally or in the current thread
        if (this.globalContext) {
            SecurityCurrent.setGlobalSecurityContext(context);
        } else {
            current.setSecurityContext(context);
        }

        return true;

    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.