Mercurial > 510Connectbot
comparison src/ch/ethz/ssh2/packets/PacketUserauthFailure.java @ 307:071eccdff8ea ganymed
fix java formatting
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Wed, 30 Jul 2014 14:16:58 -0700 |
parents | 91a31873c42a |
children |
comparison
equal
deleted
inserted
replaced
305:d2b303406d63 | 307:071eccdff8ea |
---|---|
34 payload = tw.getBytes(); | 34 payload = tw.getBytes(); |
35 } | 35 } |
36 | 36 |
37 public PacketUserauthFailure(byte payload[]) throws IOException { | 37 public PacketUserauthFailure(byte payload[]) throws IOException { |
38 this.payload = payload; | 38 this.payload = payload; |
39 | |
40 TypesReader tr = new TypesReader(payload); | 39 TypesReader tr = new TypesReader(payload); |
41 | |
42 int packet_type = tr.readByte(); | 40 int packet_type = tr.readByte(); |
43 | 41 |
44 if(packet_type != Packets.SSH_MSG_USERAUTH_FAILURE) { | 42 if (packet_type != Packets.SSH_MSG_USERAUTH_FAILURE) { |
45 throw new PacketTypeException(packet_type); | 43 throw new PacketTypeException(packet_type); |
46 } | 44 } |
45 | |
47 authThatCanContinue = new HashSet<String>(Arrays.asList(tr.readNameList())); | 46 authThatCanContinue = new HashSet<String>(Arrays.asList(tr.readNameList())); |
48 partialSuccess = tr.readBoolean(); | 47 partialSuccess = tr.readBoolean(); |
49 | 48 |
50 if(tr.remain() != 0) { | 49 if (tr.remain() != 0) { |
51 throw new PacketFormatException(String.format("Padding in %s", Packets.getMessageName(packet_type))); | 50 throw new PacketFormatException(String.format("Padding in %s", Packets.getMessageName(packet_type))); |
52 } | 51 } |
53 } | 52 } |
54 | 53 |
55 public byte[] getPayload() { | 54 public byte[] getPayload() { |