Examples of EZBSecurityContext


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

     * @param params the method params
     * @return an invocation begin event.
     */
    public EZBEventBeanInvocationBegin getInvocationEventBegin(final String source, final Object[] params) {
        // Get current Security Context
        EZBSecurityContext securityContext = SecurityCurrent.getCurrent().getSecurityContext();
        boolean runAsMode = getBeanInfo().getSecurityInfo().getRunAsRole() != null;
        EventBeanInvocationBegin event = new EventBeanInvocationBegin(source, params, securityContext, runAsMode);
        event.setStackTraceElements(Thread.currentThread().getStackTrace());

        // If audit ID propagation enabled, add current ID to the event
View Full Code Here

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

        // 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 {
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.