0
|
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 }
|