Package org.ejbca.ui.cli

Examples of org.ejbca.ui.cli.ErrorAdminCommandException


                }
                String matchValue = adminEntity.getMatchValue();
                getLogger().info("\"" + caName + "\" " + matchWith + " " + matchType + " \"" + matchValue + "\"");
            }
        } catch (Exception e) {
            throw new ErrorAdminCommandException(e);
        }
    }
View Full Code Here


        }
        String caname = args[1];
        try {
            runSetup(caname);
        } catch (Exception e) {
            throw new ErrorAdminCommandException(e);
        }
    }
View Full Code Here

        accessRules.add(accessRuleObject);
        ejb.getAdminGroupSession().addAccessRules(getAdmin(), groupName, accessRules);
      }
    } catch (Exception e) {
      getLogger().error("",e);
      throw new ErrorAdminCommandException(e);
    }
  }
View Full Code Here

                getLogger().info("User: " + data.getUsername() + ", \"" + data.getDN() +
                    "\", \"" + data.getSubjectAltName() + "\", " + data.getEmail() + ", " +
                    data.getStatus() + ", " + data.getType() + ", " + data.getTokenType() + ", " + data.getHardTokenIssuerId());
            }
        } catch (Exception e) {
            throw new ErrorAdminCommandException(e);
        }
    }
View Full Code Here

            Collections.sort(list);
            for (AccessRule accessRule : list) {
              getLogger().info(getParsedAccessRule(accessRule.getAccessRule()) + " " + AccessRule.RULE_TEXTS[accessRule.getRule()] + " " + (accessRule.isRecursive() ? "RECURSIVE" : ""));
            }
        } catch (Exception e) {
            throw new ErrorAdminCommandException(e);
    }
    }
View Full Code Here

                } catch (ApprovalException e) {
                    getLogger().info("\nApproval exception: " + e.getMessage());
                }
            }
        } catch (Exception e) {
            throw new ErrorAdminCommandException(e);
        }
    }
View Full Code Here

              getLogger().error("No such group \"" + groupName + "\" .");
                return;
            }
            ejb.getAdminGroupSession().removeAdminGroup(getAdmin(), groupName);
        } catch (Exception e) {
            throw new ErrorAdminCommandException(e);
    }
    }
View Full Code Here

                int numberOfAdmins = adminGroup.getNumberAdminEntities();
                getLogger().info(adminGroup.getAdminGroupName() + " (" + numberOfAdmins + " admin" + (numberOfAdmins == 1 ? "" : "s") + ")");
            }
        } catch (Exception e) {
            getLogger().error("", e);
            throw new ErrorAdminCommandException(e);
        }
    }
View Full Code Here

              getLogger().error("Not authorized to change userdata.");
            } catch (UserDoesntFullfillEndEntityProfile e) {
              getLogger().error("Given userdata doesn't fullfill end entity profile. : " + e.getMessage());
            }
        } catch (Exception e) {
            throw new ErrorAdminCommandException(e);
        }
    }
View Full Code Here

                getLogger().info("New status for user " + username + " is " + status);
            } catch (AuthorizationDeniedException e) {
              getLogger().error("Not authorized to change userdata.");
            }
        } catch (Exception e) {
            throw new ErrorAdminCommandException(e);
        }
    }
View Full Code Here

TOP

Related Classes of org.ejbca.ui.cli.ErrorAdminCommandException

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.