Examples of DecodeException


Examples of fr.jayasoft.crypto.DecodeException

        ByteArrayInputStream bais = null;
        try {
            bais = new ByteArrayInputStream(d.decode(bytes));
            p.load(bais);
        } catch (IOException e) {
            throw new DecodeException();
        } finally {
            IOHelper.closeQuietly(bais);
        }
        return p;
    }
View Full Code Here

Examples of fr.jayasoft.crypto.DecodeException

            BigInteger bi = new BigInteger(bytesPart).modPow(_priKey.getPrivateExponent(), _priKey.getModulus());
              baos.write(removeOneByte(bi.toByteArray()));
      }
            return baos.toByteArray();
        } catch (Exception e) {
            throw new DecodeException();
        } finally {
          IOHelper.closeQuietly(bais);
          IOHelper.closeQuietly(baos);
          IOHelper.closeQuietly(ois);
        }
View Full Code Here

Examples of fr.jayasoft.crypto.DecodeException

            Cipher cipher = Cipher.getInstance("Blowfish");
            cipher.init(Cipher.DECRYPT_MODE, _k);
            return cipher.doFinal(bytes);
          }
          catch (Exception e) {
              throw new DecodeException();
          }
    }
View Full Code Here

Examples of fr.jayasoft.crypto.DecodeException

                    j++;
            }
            return bout.toByteArray();
        } catch (Exception e) {
            e.printStackTrace();
            throw new DecodeException();
        }
    }
View Full Code Here

Examples of fr.jayasoft.crypto.DecodeException

            Cipher cipher = Cipher.getInstance("DES/ECB/PKCS5Padding");
            cipher.init(Cipher.DECRYPT_MODE, _k);
            return cipher.doFinal(bytes);
          }
          catch (Exception e) {
              throw new DecodeException();
          }
    }
View Full Code Here

Examples of io.vertx.core.json.DecodeException

  public static <T> T decodeValue(String str, Class<?> clazz) throws DecodeException {
    try {
      return (T)mapper.readValue(str, clazz);
    }
    catch (Exception e) {
      throw new DecodeException("Failed to decode:" + e.getMessage());
    }
  }
View Full Code Here

Examples of jadx.core.utils.exceptions.DecodeException

    for (InputFile dex : dexFiles) {
      DexNode dexNode;
      try {
        dexNode = new DexNode(this, dex);
      } catch (Exception e) {
        throw new DecodeException("Error decode file: " + dex, e);
      }
      dexNodes.add(dexNode);
    }
    for (DexNode dexNode : dexNodes) {
      dexNode.loadClasses();
    }

    List<ClassNode> classes = new ArrayList<ClassNode>();
    for (DexNode dexNode : dexNodes) {
      for (ClassNode cls : dexNode.getClasses()) {
        names.put(cls.getFullName(), cls);
      }
      classes.addAll(dexNode.getClasses());
    }

    try {
      initClassPath(classes);
    } catch (IOException e) {
      throw new DecodeException("Error loading classpath", e);
    }
    initInnerClasses(classes);
  }
View Full Code Here

Examples of javax.websocket.DecodeException

                    }
                } else {
                    try {
                        return ((Decoder.TextStream) decoder).decode(new StringReader(message));
                    } catch (IOException e) {
                        throw new DecodeException(message, "Could not decode string", e);
                    }
                }
            }
        }
        throw new DecodeException(message, "Could not decode string");
    }
View Full Code Here

Examples of javax.websocket.DecodeException

    private Object decodePrimitive(final Class<?> targetType, final String message) throws DecodeException {
        if (targetType == Boolean.class || targetType == boolean.class) {
            return Boolean.valueOf(message);
        } else if (targetType == Character.class || targetType == char.class) {
            if (message.length() > 1) {
                throw new DecodeException(message, "Character message larger than 1 character");
            }
            return Character.valueOf(message.charAt(0));
        } else if (targetType == Byte.class || targetType == byte.class) {
            return Byte.valueOf(message);
        } else if (targetType == Short.class || targetType == short.class) {
View Full Code Here

Examples of javax.websocket.DecodeException

                    }
                } else {
                    try {
                        return ((Decoder.BinaryStream) decoder).decode(new ByteArrayInputStream(bytes));
                    } catch (IOException e) {
                        throw new DecodeException(ByteBuffer.wrap(bytes), "Could not decode binary", e);
                    }
                }
            }
        }
        throw new DecodeException(ByteBuffer.wrap(bytes), "Could not decode binary");
    }
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.