Package org.ejbca.ui.cli

Examples of org.ejbca.ui.cli.ErrorAdminCommandException


                }
            } else {
                getLogger().error("CA or CAToken must be offline to be activated.");
            }
        } catch (Exception e) {
            throw new ErrorAdminCommandException(e);
        }
    }
View Full Code Here


        getLogger().info("Wrote Root CA certificate to '" + filename + "' using " + (pem?"PEM":"DER") + " encoding.");
            } else {
              getLogger().error("No CA certificate found.");
            }
        } catch (Exception e) {     
            throw new ErrorAdminCommandException(e);
        }       
    }
View Full Code Here

            }
          }finally{
              importer.endImport();
          }
        } catch (Exception e) {
          throw new ErrorAdminCommandException(e);           
        }
    }
View Full Code Here

              getPrintStream().println("The revocation request has been sent for approval.");           
      } catch (ApprovalException_Exception e) {
              getPrintStream().println("This revocation has already been requested.");           
            }
        } catch (Exception e) {
            throw new ErrorAdminCommandException(e);
        }
    }
View Full Code Here

    } catch (Exception e) {
      if (e instanceof EjbcaException_Exception) {
        EjbcaException_Exception e1 = (EjbcaException_Exception)e;
        getPrintStream().println("Error code is: "+e1.getFaultInfo().getErrorCode().getInternalErrorCode());
      }
      throw new ErrorAdminCommandException(e);
    }
  }
View Full Code Here

    } catch (Exception e) {
      if (e instanceof EjbcaException_Exception) {
        EjbcaException_Exception e1 = (EjbcaException_Exception)e;
        getPrintStream().println("Error code is: "+e1.getFaultInfo().getErrorCode().getInternalErrorCode());
      }
      throw new ErrorAdminCommandException(e);
    }
  }
View Full Code Here

            } else {
                getPrintStream().println("The length of the queue for the publisher '"+name+"' is "+length+" items.");
            }
            System.exit(length); // return the length so that scripts may use it. // NOPMD, this is not a JEE app
        } catch (Exception e) {
            throw new ErrorAdminCommandException(e);
        }
    }
View Full Code Here

    } catch (Exception e) {
      if (e instanceof EjbcaException_Exception) {
        EjbcaException_Exception e1 = (EjbcaException_Exception)e;
        getPrintStream().println("Error code is: "+e1.getFaultInfo().getErrorCode().getInternalErrorCode());
      }
      throw new ErrorAdminCommandException(e);
    }
  }
View Full Code Here

            }catch(AuthorizationDeniedException_Exception e){
              getPrintStream().println("Error : " + e.getMessage());           
            }
        } catch (Exception e) {
            throw new ErrorAdminCommandException(e);
        }
    }
View Full Code Here

        fos.write(bytes);
        fos.close();       
      }
      getPrintStream().println("Wrote output file "+outfile);
    } 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.