Thrown by SshMessage implementations when an invalid message is found.
SshMessage
107108109110111112113114
protected void constructMessage(ByteArrayReader bar) throws InvalidMessageException { try { recipientChannel = bar.readInt(); } catch (IOException ioe) { throw new InvalidMessageException("Invalid message data"); } }
108109110111112113114115
com.sshtools.j2ssh.transport.InvalidMessageException { try { padding = new byte[bar.available()]; bar.read(padding); } catch (IOException ioe) { throw new InvalidMessageException(ioe.getMessage()); } }
102103104105106107108109
com.sshtools.j2ssh.transport.InvalidMessageException { try { baw.writeBinaryString(pubkey.getEncoded()); baw.writeString(description); } catch (IOException ex) { throw new InvalidMessageException(ex.getMessage()); } }
123124125126127128129130
com.sshtools.j2ssh.transport.InvalidMessageException { try { pubkey = SshKeyPairFactory.decodePublicKey(bar.readBinaryString()); description = bar.readString(); } catch (IOException ex) { throw new InvalidMessageException(ex.getMessage()); } }
123124125126127128129130131
try { baw.writeBinaryString(hostKey); baw.writeBigInteger(f); baw.writeBinaryString(signature); } catch (IOException ioe) { throw new InvalidMessageException("Error writing message data: " + ioe.getMessage()); } }
142143144145146147148149150
try { hostKey = bar.readBinaryString(); f = bar.readBigInteger(); signature = bar.readBinaryString(); } catch (IOException ioe) { throw new InvalidMessageException("Error reading message data: " + ioe.getMessage()); } }
949596979899100101102
protected void constructByteArray(ByteArrayWriter baw) throws InvalidMessageException { try { baw.writeBigInteger(e); } catch (IOException ioe) { throw new InvalidMessageException("Error writing message data: " + ioe.getMessage()); } }
111112113114115116117118119
protected void constructMessage(ByteArrayReader bar) throws InvalidMessageException { try { e = bar.readBigInteger(); } catch (IOException ioe) { throw new InvalidMessageException("Error reading message data: " + ioe.getMessage()); } }
124125126127128129130131132
143144145146147148149150151