Thrown by SshMessage implementations when an invalid message is found.
SshMessage
107108109110111112113114
description = (String) entry.getValue(); baw.writeBinaryString(key.getEncoded()); baw.writeString(description); } } catch (IOException ex) { throw new InvalidMessageException("Failed to write message data"); } }
137138139140141142143144
key = SshKeyPairFactory.decodePublicKey(buf); description = bar.readString(); keys.put(key, description); } } catch (IOException ex) { throw new InvalidMessageException("Failed to read message data"); } }
8990919293949596
protected void constructByteArray(ByteArrayWriter baw) throws InvalidMessageException { try { baw.writeInt(recipientChannel); } catch (IOException ioe) { throw new InvalidMessageException("Invalid message data"); } }
105106107108109110111112
protected void constructMessage(ByteArrayReader bar) throws InvalidMessageException { try { recipientChannel = bar.readInt(); } catch (IOException ioe) { throw new InvalidMessageException("Invalid message data"); } }
8889909192939495
throws java.io.IOException, com.sshtools.j2ssh.transport.InvalidMessageException { try { baw.writeUINT32(version); } catch (IOException ex) { throw new InvalidMessageException(ex.getMessage()); } }
108109110111112113114115
throws java.io.IOException, com.sshtools.j2ssh.transport.InvalidMessageException { try { version = bar.readUINT32(); } catch (IOException ex) { throw new InvalidMessageException(ex.getMessage()); } }
9192939495969798
try { if (requestData != null) { baw.write(requestData); } } catch (IOException ioe) { throw new InvalidMessageException("Invalid message data"); } }
110111112113114115116117
if (bar.available() > 0) { requestData = new byte[bar.available()]; bar.read(requestData); } } catch (IOException ioe) { throw new InvalidMessageException("Invalid message data"); } }
protected void constructByteArray(ByteArrayWriter baw) throws InvalidMessageException { try { baw.writeInt(channelId); } catch (IOException ioe) { throw new InvalidMessageException("Invalid message data"); } }
protected void constructMessage(ByteArrayReader bar) throws InvalidMessageException { try { channelId = bar.readInt(); } catch (IOException ioe) { throw new InvalidMessageException("Invalid message data"); } }