Examples of CallerInfo


Examples of com.sun.enterprise.tools.common.util.diagnostics.CallerInfo

  private static String getCallerInfo()
  {
    try
    {
      CallerInfo ci = new CallerInfo( new Object[] { staticInstance });
      return ci.toString();
    }
    catch(CallerInfoException e)
    {
      return null;
    }
View Full Code Here

Examples of com.sun.enterprise.util.diagnostics.CallerInfo

  private static String getCallerInfo()
  {
    try
    {
      CallerInfo ci = new CallerInfo( new Object[] { staticInstance });
      return ci.toString();
    }
    catch(CallerInfoException e)
    {
      return null;
    }
View Full Code Here

Examples of org.jboss.test.security.interfaces.CallerInfo

      expectedCallerRoles.add("allAuthCaller");
      expectedCallerRoles.add("webUser");
      HashSet expectedRunAsRoles = new HashSet();
      expectedRunAsRoles.add("identitySubstitutionCaller");
      expectedRunAsRoles.add("extraRunAsRole");
      CallerInfo info = new CallerInfo(callerIdentity, runAsIdentity,
         expectedCallerRoles, expectedRunAsRoles);
      bean.publicMethod(info);
      bean.remove();
   }
View Full Code Here

Examples of org.jboss.test.security.interfaces.CallerInfo

      expectedCallerRoles.add("allAuthCaller");
      expectedCallerRoles.add("webUser");
      HashSet expectedRunAsRoles = new HashSet();
      expectedRunAsRoles.add("identitySubstitutionCaller");
      expectedRunAsRoles.add("extraRunAsRole");
      CallerInfo info = new CallerInfo(callerIdentity, runAsIdentity,
         expectedCallerRoles, expectedRunAsRoles);
      bean.allAuthMethod(info);
      bean.remove();
   }
View Full Code Here

Examples of org.jboss.test.security.interfaces.CallerInfo

      expectedCallerRoles.add("allAuthCaller");
      expectedCallerRoles.add("webUser");
      HashSet expectedRunAsRoles = new HashSet();
      expectedRunAsRoles.add("identitySubstitutionCaller");
      expectedRunAsRoles.add("extraRunAsRole");
      CallerInfo info = new CallerInfo(callerIdentity, runAsIdentity,
         expectedCallerRoles, expectedRunAsRoles);
      bean.userMethod(info);
      bean.remove();
   }
View Full Code Here

Examples of org.jboss.test.security.interfaces.CallerInfo

      expectedCallerRoles.add("allAuthCaller");
      expectedCallerRoles.add("webUser");
      HashSet expectedRunAsRoles = new HashSet();
      expectedRunAsRoles.add("identitySubstitutionCaller");
      expectedRunAsRoles.add("extraRunAsRole");
      CallerInfo info = new CallerInfo(callerIdentity, runAsIdentity,
         expectedCallerRoles, expectedRunAsRoles);
      bean.groupMemberMethod(info);
      bean.remove();
   }
View Full Code Here

Examples of org.jboss.test.security.interfaces.CallerInfo

      expectedCallerRoles.add("allAuthCaller");
      expectedCallerRoles.add("webUser");
      HashSet expectedRunAsRoles = new HashSet();
      expectedRunAsRoles.add("identitySubstitutionCaller");
      expectedRunAsRoles.add("extraRunAsRole");
      CallerInfo info = new CallerInfo(callerIdentity, runAsIdentity,
         expectedCallerRoles, expectedRunAsRoles);
      bean.runAsMethod(info);
      bean.remove();
   }
View Full Code Here

Examples of org.jboss.test.security.interfaces.CallerInfo

      Principal runAsIdentity = new SimplePrincipal("runAsUser");
      HashSet expectedCallerRoles = new HashSet();
      HashSet expectedRunAsRoles = new HashSet();
      expectedRunAsRoles.add("identitySubstitutionCaller");
      expectedRunAsRoles.add("extraRunAsRole");
      CallerInfo info = new CallerInfo(callerIdentity, runAsIdentity,
         expectedCallerRoles, expectedRunAsRoles);
      bean.unprotectedEjbMethod(info);
      bean.remove();
   }
View Full Code Here

Examples of org.jboss.test.security.interfaces.CallerInfo

      Principal runAsIdentity = new SimplePrincipal("runAsUser");
      HashSet expectedCallerRoles = new HashSet();
      HashSet expectedRunAsRoles = new HashSet();
      expectedRunAsRoles.add("identitySubstitutionCaller");
      expectedRunAsRoles.add("extraRunAsRole");
      CallerInfo info = new CallerInfo(callerIdentity, runAsIdentity,
         expectedCallerRoles, expectedRunAsRoles);

      String baseURLNoAuth = HttpUtils.getBaseURLNoAuth();
      PostMethod formPost = new PostMethod(baseURLNoAuth+"subject-context/unrestricted/RunAsServlet");
      ByteArrayOutputStream baos = new ByteArrayOutputStream();
View Full Code Here

Examples of org.jboss.test.security.interfaces.CallerInfo

      expectedCallerRoles.add("allAuthCaller");
      expectedCallerRoles.add("webUser");
      HashSet expectedRunAsRoles = new HashSet();
      expectedRunAsRoles.add("identitySubstitutionCaller");
      expectedRunAsRoles.add("extraRunAsRole");
      CallerInfo info = new CallerInfo(callerIdentity, runAsIdentity,
         expectedCallerRoles, expectedRunAsRoles);

      String baseURL = HttpUtils.getBaseURL("jduke", "theduke");
      PostMethod formPost = new PostMethod(baseURL+"subject-context/restricted/RunAsServlet");
      formPost.setDoAuthentication(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.