int admingroupid = hardtokenissuerhome.findByAlias(alias).getAdminGroupId(); System.out.println("admingroupid " +  admingroupid); returnval = getAuthorizationSession(admin).isAuthorizedNoLog(admin, "/hardtoken_functionality/issue_hardtokens"); System.out.println("isAuthorizedNoLog " +  returnval ); returnval = returnval && authorizationsession.existsAdministratorInGroup(admin, admingroupid); System.out.println("existsAdministratorInGroup " +  returnval );
int admingroupid = hardtokenissuerhome.findByAlias(alias).getAdminGroupId(); returnval = getAuthorizationSession(admin).isAuthorizedNoLog(admin, "/hardtoken_functionality/issue_hardtokens"); returnval = returnval && authorizationsession.existsAdministratorInGroup(admin, admingroupid);
    public boolean getAuthorizedToHardTokenIssuer(Admin admin, String alias){      System.out.println(">getAuthorizedToHardTokenIssuer(" +  alias + ")");      boolean returnval = false;              try{        	      	  int admingroupid = hardtokenissuerhome.findByAlias(alias).getAdminGroupId();      	  System.out.println("admingroupid " +  admingroupid);      	  		  returnval = getAuthorizationSession(admin).isAuthorizedNoLog(admin, "/hardtoken_functionality/issue_hardtokens");		  System.out.println("isAuthorizedNoLog " +  returnval );      	  returnval = returnval && authorizationsession.existsAdministratorInGroup(admin, admingroupid);      	  System.out.println("existsAdministratorInGroup " +  returnval );        }catch(FinderException fe){}          catch(AuthorizationDeniedException ade){}          System.out.println("<getAuthorizedToHardTokenIssuer(" +  returnval + ")");      return returnval;	    }