Package org.apache.wicket.security.hive.authorization

Examples of org.apache.wicket.security.hive.authorization.Principal


  {
    Authentication authentication = SecurityContextHolder.getContext().getAuthentication();
    Collection<GrantedAuthority> authorities = authentication.getAuthorities();
    if (authorities != null)
    {
      Principal principal;
      for (GrantedAuthority curAuthority : authorities)
      {
        principal = convert(curAuthority);
        if (principal != null)
          addPrincipal(principal);
View Full Code Here


      BasicHive hive;
      if (cache)
        hive = new SimpleCachingHive();
      else
        hive = new BasicHive();
      Principal principal = new SimplePrincipal("speed");
      SwarmAction action = (SwarmAction) actionFactory.getAction("access, render");
      hive.addPermission(principal, new ComponentPermission(
        "org.apache.wicket.security.pages.SpeedPage", action));
      for (int i = 0; i < ROWS; i++)
      {
View Full Code Here

      reader = (BufferedReader) input;
    else
      reader = new BufferedReader(input);

    boolean inPrincipalBlock = false;
    Principal principal = null;
    Set<Permission> permissions = null;
    currentLineNr = 0;
    String line = reader.readLine();
    while (line != null)
    {
View Full Code Here

TOP

Related Classes of org.apache.wicket.security.hive.authorization.Principal

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.