/** * Writes a byte indicating the SSH message identifier * * @param msg the identifier as a {@link Message} type * * @return this */ public SSHPacket putMessageID(Message msg) { return putByte(msg.toByte()); }
private byte[] generateMIC() throws UserAuthException { byte[] msg = new PlainBuffer().putString(params.getTransport().getSessionID()) .putByte(Message.USERAUTH_REQUEST.toByte()) .putString(params.getUsername()) .putString(params.getNextServiceName()) .putString(getName()) .getCompactData(); try { return secContext.getMIC(msg, 0, msg.length, null); } catch (GSSException e) { throw new UserAuthException("Exception getting message integrity code", e); } }
/** * Writes a byte indicating the SSH message identifier * * @param msg the identifier as a {@link Message} type * * @return this */ public SSHPacket putMessageID(Message msg) { return putByte(msg.toByte()); }
/** * Writes a byte indicating the SSH message identifier * * @param msg the identifier as a {@link Message} type * * @return this */ public SSHPacket putMessageID(Message msg) { return putByte(msg.toByte()); }
private byte[] generateMIC() throws UserAuthException { byte[] msg = new PlainBuffer().putString(params.getTransport().getSessionID()) .putByte(Message.USERAUTH_REQUEST.toByte()) .putString(params.getUsername()) .putString(params.getNextServiceName()) .putString(getName()) .getCompactData(); try { return secContext.getMIC(msg, 0, msg.length, null); } catch (GSSException e) { throw new UserAuthException("Exception getting message integrity code", e); } }