Package com.sun.enterprise.security

Examples of com.sun.enterprise.security.CachedPermission


            return inv.auth.booleanValue();
        }
       
  boolean ret=false;

  CachedPermission cp = null;
  Permission ejbmp = null;

  if (inv.invocationInfo == null || inv.invocationInfo.cachedPermission == null) {
      ejbmp = new EJBMethodPermission(ejbName,inv.getMethodInterface(),inv.method);
      cp = new CachedPermissionImpl(uncheckedMethodPermissionCache,ejbmp);
      if (inv.invocationInfo != null) {
    inv.invocationInfo.cachedPermission = cp;
    if (_logger.isLoggable(Level.FINE)){
        _logger.fine("JACC: permission initialized in InvocationInfo: EJBMethodPermission (Name) = "+ ejbmp.getName() + " (Action) = "+ ejbmp.getActions());
    }
      }
  } else {
      cp = inv.invocationInfo.cachedPermission;
      ejbmp = cp.getPermission();
  }

  String caller = null;
        SecurityContext sc = null;

  pcHandlerImpl.getHandlerData().setInvocation(inv);
  ret = cp.checkPermission();

  if (!ret) {

      sc = SecurityContext.getCurrent();
 
View Full Code Here


            return inv.getAuth().booleanValue();
        }

        boolean ret = false;

        CachedPermission cp = null;
        Permission ejbmp = null;

        if (inv.invocationInfo == null || inv.invocationInfo.cachedPermission == null) {
            ejbmp = new EJBMethodPermission(ejbName, inv.getMethodInterface(), inv.method);
            cp = new CachedPermissionImpl(uncheckedMethodPermissionCache, ejbmp);
            if (inv.invocationInfo != null) {
                inv.invocationInfo.cachedPermission = cp;
                if (_logger.isLoggable(Level.FINE)) {
                    _logger.fine("JACC: permission initialized in InvocationInfo: EJBMethodPermission (Name) = " + ejbmp.getName() + " (Action) = " + ejbmp.getActions());
                }
            }
        } else {
            cp = inv.invocationInfo.cachedPermission;
            ejbmp = cp.getPermission();
        }

        String caller = null;
        SecurityContext sc = null;

        pcHandlerImpl.getHandlerData().setInvocation(inv);
        ret = cp.checkPermission();

        if (!ret) {

            sc = SecurityContext.getCurrent();
            Set principalSet = sc.getPrincipalSet();
View Full Code Here

TOP

Related Classes of com.sun.enterprise.security.CachedPermission

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.