comparison app/src/main/java/ch/ethz/ssh2/packets/PacketChannelAuthAgentReq.java @ 438:d29cce60f393

migrate from Eclipse to Android Studio
author Carl Byington <carl@five-ten-sg.com>
date Thu, 03 Dec 2015 11:23:55 -0800
parents src/ch/ethz/ssh2/packets/PacketChannelAuthAgentReq.java@5824a1475be4
children
comparison
equal deleted inserted replaced
437:208b31032318 438:d29cce60f393
1 package ch.ethz.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 }