Package org.ejbca.util

Examples of org.ejbca.util.IPatternLogger.writeln()


        transactionLogger.writeln();
        auditLogger.paramPut(IAuditLogger.STATUS, OCSPRespGenerator.INTERNAL_ERROR);
      }
      byte[] respBytes = ocspresp.getEncoded();
      auditLogger.paramPut(IAuditLogger.OCSPRESPONSE, new String (Hex.encode(respBytes)));
            auditLogger.writeln();
      auditLogger.flush();
      transactionLogger.flush();
      if (mDoSaferLogging){
        // See if the Errorhandler has found any problems
        if (hasErrorHandlerFailedSince(startTime)) {
View Full Code Here


      // The most likely reason is that the user already existed.
            throw EjbcaWSHelper.getEjbcaException(e, logger, ErrorCode.USER_ALREADY_EXISTS, Level.INFO);
        } catch (RuntimeException e) {  // ClassCastException, EJBException, ...
            throw EjbcaWSHelper.getInternalException(e, logger);
    } finally {
        logger.writeln();
            logger.flush();
        }
  }

  /**
 
View Full Code Here

          logger.paramPut(TransactionTags.ERROR_MESSAGE.toString(), e.toString());
          throw e;
        } catch (RuntimeException e) {  // ClassCastException, EJBException ...
          throw EjbcaWSHelper.getInternalException(e, logger);
        } finally {
          logger.writeln();
          logger.flush();
        }
    return retval;
  }
View Full Code Here

        }
      }
        } catch (RuntimeException e) {  // EJBException ...
            throw EjbcaWSHelper.getInternalException(e, logger);
    } finally {
            logger.writeln();
            logger.flush();
        }
    return retval;
  }
View Full Code Here

    } catch (CertificateEncodingException e) {
            throw EjbcaWSHelper.getInternalException(e, logger);
        } catch (RuntimeException e) {  // EJBException ...
            throw EjbcaWSHelper.getInternalException(e, logger);
        } finally {
            logger.writeln();
            logger.flush();
        }
    if (log.isTraceEnabled()) {
      log.trace("<getLastCertChain: "+username);
    }
View Full Code Here

            logger.paramPut(TransactionTags.ERROR_MESSAGE.toString(), t.toString());
            throw t;
        } catch (RuntimeException e) {  // ClassCastException, EJBException ...
            throw EjbcaWSHelper.getInternalException(e, logger);
      } finally {
          logger.writeln();
          logger.flush();
      }
  }
 
  /**
 
View Full Code Here

            logger.paramPut(TransactionTags.ERROR_MESSAGE.toString(), t.toString());
            throw t;
        } catch (RuntimeException e) {  // EJBException ...
            throw EjbcaWSHelper.getInternalException(e, logger);
        } finally {
            logger.writeln();
            logger.flush();
        }
  }

  /** Method called from cvcRequest that simply verifies a CVCertificate with a public key and throws AuthorizationDeniedException
View Full Code Here

        throw EjbcaWSHelper.getInternalException(e, logger);
        } catch (RuntimeException e) {  // EJBException, ...
      ejbhelper.resetUserPasswordAndStatus(admin, username, olduserStatus);
            throw EjbcaWSHelper.getInternalException(e, logger);
        } finally {
            logger.writeln();
            logger.flush();
        }
  } // cvcRequest

  /**
 
View Full Code Here

            logger.paramPut(TransactionTags.ERROR_MESSAGE.toString(), t.toString());
            throw t;
        } catch (RuntimeException e) {  // EJBException, ...
            throw EjbcaWSHelper.getInternalException(e, logger);
        } finally {
            logger.writeln();
            logger.flush();
        }
  }
 
  private byte[] processCertReq(final String username, final String password, final String req, final int reqType,
View Full Code Here

        // Don't log a bad error for this (user's key length too small)
                throw EjbcaWSHelper.getEjbcaException(e, logger, ErrorCode.ILLEGAL_KEY, Level.DEBUG);
          } catch (RuntimeException e) {  // EJBException, ...
              throw EjbcaWSHelper.getInternalException(e, logger);
            } finally {
                logger.writeln();
                logger.flush();
      }
  }

  /**
 
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.