Package org.ejbca.util

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


        pl.paramPut(IOCSPLogger.ISSUER_NAME_HASH,"0");
        pl.paramPut(IOCSPLogger.ISSUER_KEY,"0");
        pl.paramPut(ITransactionLogger.DIGEST_ALGOR,"0");
        pl.paramPut(IOCSPLogger.SERIAL_NOHEX,"0");
        pl.paramPut(ITransactionLogger.CERT_STATUS,"0");
        pl.paramPut(ITransactionLogger.PROCESS_TIME, "-1");
        return pl;
  }

  /**
   * This Method needs to be called before creating any instances
View Full Code Here


    private IPatternLogger getNewPatternLogger() {
        if ( !this.doLog ) {
            return new DummyPatternLogger();
        }
        IPatternLogger pl = new PatternLogger(this.PATTERN.matcher(this.orderString), this.orderString, this.log, this.logDateFormat, this.timeZone);
        pl.paramPut(TransactionTags.ERROR_MESSAGE.toString(), "NO_ERROR");
        pl.paramPut(TransactionTags.METHOD.toString(), new Throwable().getStackTrace()[2].getMethodName());
        pl.paramPut(IPatternLogger.LOG_ID, Integer.toString(this.transactionID++));
        pl.paramPut(IPatternLogger.SESSION_ID, this.sessionID);
        return pl;
    }
View Full Code Here

        if ( !this.doLog ) {
            return new DummyPatternLogger();
        }
        IPatternLogger pl = new PatternLogger(this.PATTERN.matcher(this.orderString), this.orderString, this.log, this.logDateFormat, this.timeZone);
        pl.paramPut(TransactionTags.ERROR_MESSAGE.toString(), "NO_ERROR");
        pl.paramPut(TransactionTags.METHOD.toString(), new Throwable().getStackTrace()[2].getMethodName());
        pl.paramPut(IPatternLogger.LOG_ID, Integer.toString(this.transactionID++));
        pl.paramPut(IPatternLogger.SESSION_ID, this.sessionID);
        return pl;
    }
}
View Full Code Here

            return new DummyPatternLogger();
        }
        IPatternLogger pl = new PatternLogger(this.PATTERN.matcher(this.orderString), this.orderString, this.log, this.logDateFormat, this.timeZone);
        pl.paramPut(TransactionTags.ERROR_MESSAGE.toString(), "NO_ERROR");
        pl.paramPut(TransactionTags.METHOD.toString(), new Throwable().getStackTrace()[2].getMethodName());
        pl.paramPut(IPatternLogger.LOG_ID, Integer.toString(this.transactionID++));
        pl.paramPut(IPatternLogger.SESSION_ID, this.sessionID);
        return pl;
    }
}
View Full Code Here

        }
        IPatternLogger pl = new PatternLogger(this.PATTERN.matcher(this.orderString), this.orderString, this.log, this.logDateFormat, this.timeZone);
        pl.paramPut(TransactionTags.ERROR_MESSAGE.toString(), "NO_ERROR");
        pl.paramPut(TransactionTags.METHOD.toString(), new Throwable().getStackTrace()[2].getMethodName());
        pl.paramPut(IPatternLogger.LOG_ID, Integer.toString(this.transactionID++));
        pl.paramPut(IPatternLogger.SESSION_ID, this.sessionID);
        return pl;
    }
}
View Full Code Here

              }
              userAdminSession.addUserFromWS(admin,userdatavo,userdata.isClearPwd());
            }
    } catch (UserDoesntFullfillEndEntityProfile e) {
      log.debug(e.toString());
            logger.paramPut(TransactionTags.ERROR_MESSAGE.toString(), e.toString());
      throw e;
    } catch (AuthorizationDeniedException e) {
            final String errorMessage = "AuthorizationDeniedException when editing user "+userdata.getUsername()+": "+e.getMessage();
      log.info(errorMessage);
            logger.paramPut(TransactionTags.ERROR_MESSAGE.toString(), errorMessage);
View Full Code Here

            logger.paramPut(TransactionTags.ERROR_MESSAGE.toString(), e.toString());
      throw e;
    } catch (AuthorizationDeniedException e) {
            final String errorMessage = "AuthorizationDeniedException when editing user "+userdata.getUsername()+": "+e.getMessage();
      log.info(errorMessage);
            logger.paramPut(TransactionTags.ERROR_MESSAGE.toString(), errorMessage);
      throw e;
    } catch (PersistenceException e) {
      // 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, ...
View Full Code Here

            for (final UserDataVO userdata : result) {
              retval.add(ejbhelper.convertUserDataVO(admin,userdata));
            }
          }
        } catch(AuthorizationDeniedException e) {
          logger.paramPut(TransactionTags.ERROR_MESSAGE.toString(), e.toString());
          throw e;
        } catch (RuntimeException e) {  // ClassCastException, EJBException ...
          throw EjbcaWSHelper.getInternalException(e, logger);
        } finally {
          logger.writeln();
View Full Code Here

      final IPatternLogger logger = TransactionLogger.getPatternLogger();
      try {
          return new CertificateResponse(responseType, processCertReq(username, password,
                                                                      crmf, REQTYPE_CRMF, hardTokenSN, responseType, logger));
        } catch( CADoesntExistsException t ) {
            logger.paramPut(TransactionTags.ERROR_MESSAGE.toString(), t.toString());
            throw t;
        } catch( AuthorizationDeniedException t ) {
            logger.paramPut(TransactionTags.ERROR_MESSAGE.toString(), t.toString());
            throw t;
        } catch( NotFoundException t ) {
View Full Code Here

                                                                      crmf, REQTYPE_CRMF, hardTokenSN, responseType, logger));
        } catch( CADoesntExistsException t ) {
            logger.paramPut(TransactionTags.ERROR_MESSAGE.toString(), t.toString());
            throw t;
        } catch( AuthorizationDeniedException t ) {
            logger.paramPut(TransactionTags.ERROR_MESSAGE.toString(), t.toString());
            throw t;
        } catch( NotFoundException t ) {
            logger.paramPut(TransactionTags.ERROR_MESSAGE.toString(), t.toString());
            throw t;
        } catch (RuntimeException e) {  // ClassCastException, EJBException ...
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.