Mercurial > 510Connectbot
comparison src/com/trilead/ssh2/packets/PacketChannelAuthAgentReq.java @ 0:0ce5cc452d02
initial version
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Thu, 22 May 2014 10:41:19 -0700 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:0ce5cc452d02 |
---|---|
1 package com.trilead.ssh2.packets; | |
2 | |
3 /** | |
4 * PacketGlobalAuthAgent. | |
5 * | |
6 * @author Kenny Root, kenny@the-b.org | |
7 * @version $Id$ | |
8 */ | |
9 public class PacketChannelAuthAgentReq { | |
10 byte[] payload; | |
11 | |
12 public int recipientChannelID; | |
13 | |
14 public PacketChannelAuthAgentReq(int recipientChannelID) { | |
15 this.recipientChannelID = recipientChannelID; | |
16 } | |
17 | |
18 public byte[] getPayload() { | |
19 if (payload == null) { | |
20 TypesWriter tw = new TypesWriter(); | |
21 tw.writeByte(Packets.SSH_MSG_CHANNEL_REQUEST); | |
22 tw.writeUINT32(recipientChannelID); | |
23 tw.writeString("auth-agent-req@openssh.com"); | |
24 tw.writeBoolean(true); // want reply | |
25 payload = tw.getBytes(); | |
26 } | |
27 | |
28 return payload; | |
29 } | |
30 } |