Thrown by SshMessage implementations when an invalid message is found.
SshMessage
141142143144145146147148
baw.writeInt(recipientChannel); baw.writeInt(reasonCode); baw.writeString(additional); baw.writeString(languageTag); } catch (IOException ioe) { throw new InvalidMessageException("Invalid message data"); } }
118119120121122123124125
} baw.writeString(authMethods); baw.write((partialSuccess ? 1 : 0)); } catch (IOException ioe) { throw new InvalidMessageException("Invalid message data"); } }
136137138139140141142143
try { String auths = bar.readString(); partialSuccess = ((bar.read() != 0) ? true : false); loadListFromDelimString(auths); } catch (IOException ioe) { throw new InvalidMessageException("Invalid message data"); } }
160161162163164165166167
recipientChannel = bar.readInt(); reasonCode = bar.readInt(); additional = bar.readString(); languageTag = bar.readString(); } catch (IOException ioe) { throw new InvalidMessageException("Invalid message data"); } }
8788899091929394
throws java.io.IOException, com.sshtools.j2ssh.transport.InvalidMessageException { try { baw.writeInt(length); } catch (IOException ioe) { throw new InvalidMessageException(ioe.getMessage()); } }
107108109110111112113114
throws java.io.IOException, com.sshtools.j2ssh.transport.InvalidMessageException { try { length = (int) bar.readInt(); } catch (IOException ioe) { throw new InvalidMessageException(ioe.getMessage()); } }
116117118119120121122123
try { baw.writeString(operation); baw.writeBinaryString(pubkey.getEncoded()); baw.write(data); } catch (IOException ex) { throw new InvalidMessageException(ex.getMessage()); } }
119120121122123124125126
if (requestData != null) { baw.write(requestData); } } catch (IOException ioe) { throw new InvalidMessageException("Invalid message data"); } }
139140141142143144145146
operation = bar.readString(); pubkey = SshKeyPairFactory.decodePublicKey(bar.readBinaryString()); data = new byte[bar.available()]; bar.read(data); } catch (IOException ex) { throw new InvalidMessageException(ex.getMessage()); } }
if (bar.available() > 0) { requestData = new byte[bar.available()]; bar.read(requestData); } } catch (IOException ioe) { throw new InvalidMessageException("Invalid message data"); } }