Package org.hdiv.exception

Examples of org.hdiv.exception.HDIVException


    HDIVFacesEventListener newFacesEventListener = (HDIVFacesEventListener) facesContext.getExternalContext()
        .getApplicationMap().get(FACESEVENTLISTENER_SERVLETCONTEXT_KEY);

    if (newFacesEventListener == null) {
      throw new HDIVException(
          "HDIVFacesEventListener object has not been initialized correctly in servletContext.");
    } else {
      return newFacesEventListener;
    }
  }
View Full Code Here


      this.messageDigest = MessageDigest.getInstance(algorithmName);
      if (log.isDebugEnabled()) {
        log.debug("MessageDigest created: " + messageDigest);
      }
    } catch (NoSuchAlgorithmException e) {
      throw new HDIVException(e.getMessage(), e);
    }
  }
View Full Code Here

      Base64 base64Codec = new Base64();
      return new String(base64Codec.encode(encodedData), ZIP_CHARSET);

    } catch (Exception e) {
      String errorMessage = HDIVUtil.getMessage("encode.message");
      throw new HDIVException(errorMessage, e);
    }
  }
View Full Code Here

      unzippedStream.close();
      decodedStream.close();
      return obj;

    } catch (Exception e) {
      throw new HDIVException(HDIVErrorCodes.HDIV_PARAMETER_INCORRECT_VALUE, e);
    }
  }
View Full Code Here

      Base64 base64Codec = new Base64();
      return new String(base64Codec.encode(encodedData), ZIP_CHARSET);

    } catch (Exception e) {
      String errorMessage = HDIVUtil.getMessage("encode.message");
      throw new HDIVException(errorMessage, e);
    }
  }
View Full Code Here

      unzippedStream.close();
      decodedStream.close();
      return obj;

    } catch (Exception e) {
      throw new HDIVException(HDIVErrorCodes.HDIV_PARAMETER_INCORRECT_VALUE, e);
    }
  }
View Full Code Here

      return new String(raw);

    } catch (Exception e) {
      String errorMessage = HDIVUtil.getMessage("hash.digest");
      throw new HDIVException(errorMessage, e);
    }
  }
View Full Code Here

      return key;

    } catch (NoSuchAlgorithmException e) {
      String errorMessage = HDIVUtil.getMessage("key.factory.generate", e.getMessage());
      throw new HDIVException(errorMessage, e);
    } catch (NoSuchProviderException e) {
      String errorMessage = HDIVUtil.getMessage("key.factory.generate", e.getMessage());
      throw new HDIVException(errorMessage, e);
    }
  }
View Full Code Here

      if (log.isDebugEnabled()) {
        log.debug("New CipherHTTP instance [cipher = " + this.cipher + "]");
      }

    } catch (NoSuchProviderException e) {
      throw new HDIVException(e.getMessage(), e);

    } catch (NoSuchAlgorithmException e) {
      throw new HDIVException(e.getMessage(), e);

    } catch (NoSuchPaddingException e) {
      throw new HDIVException(e.getMessage(), e);
    }
  }
View Full Code Here

      this.cipher.init(Cipher.ENCRYPT_MODE, key.getKey(), this.ivSpec);
      this.encryptMode = true;

    } catch (InvalidKeyException e) {
      String errorMessage = HDIVUtil.getMessage("cipher.init.encrypt", e.getMessage());
      throw new HDIVException(errorMessage, e);
    } catch (InvalidAlgorithmParameterException e) {
      String errorMessage = HDIVUtil.getMessage("cipher.init.encrypt", e.getMessage());
      throw new HDIVException(errorMessage, e);
    }
  }
View Full Code Here

TOP

Related Classes of org.hdiv.exception.HDIVException

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.