273
|
1 /*
|
|
2 * Copyright (c) 2006-2011 Christian Plattner. All rights reserved.
|
|
3 * Please refer to the LICENSE.txt for licensing details.
|
|
4 */
|
|
5 package ch.ethz.ssh2.packets;
|
|
6
|
|
7 /**
|
|
8 * @author Christian Plattner
|
|
9 * @version $Id: PacketUserauthInfoResponse.java 160 2014-05-01 14:30:26Z dkocher@sudo.ch $
|
|
10 */
|
|
11 public final class PacketUserauthInfoResponse {
|
|
12 private final byte[] payload;
|
|
13
|
|
14 public PacketUserauthInfoResponse(String[] responses) {
|
|
15 TypesWriter tw = new TypesWriter();
|
|
16 tw.writeByte(Packets.SSH_MSG_USERAUTH_INFO_RESPONSE);
|
|
17 tw.writeUINT32(responses.length);
|
307
|
18
|
|
19 for (String response : responses) {
|
273
|
20 tw.writeString(response);
|
|
21 }
|
307
|
22
|
273
|
23 payload = tw.getBytes();
|
|
24 }
|
|
25
|
|
26 public byte[] getPayload() {
|
|
27 return payload;
|
|
28 }
|
|
29 }
|