@@ -149,7 +149,7 @@ public Connection(String hostname, int port)
149149 * An <code>InteractiveCallback</code> which will be used to
150150 * determine the responses to the questions asked by the server.
151151 * @return whether the connection is now authenticated.
152- * @throws IOException
152+ * @throws IOException on error
153153 */
154154 public synchronized boolean authenticateWithKeyboardInteractive (String user , InteractiveCallback cb )
155155 throws IOException
@@ -189,7 +189,7 @@ public synchronized boolean authenticateWithKeyboardInteractive(String user, Int
189189 * determine the responses to the questions asked by the server.
190190 *
191191 * @return whether the connection is now authenticated.
192- * @throws IOException
192+ * @throws IOException on error
193193 */
194194 public synchronized boolean authenticateWithKeyboardInteractive (String user , String [] submethods ,
195195 InteractiveCallback cb ) throws IOException
@@ -225,10 +225,10 @@ public synchronized boolean authenticateWithKeyboardInteractive(String user, Str
225225 * authentication (e.g., when using the putty or openssh clients) it is
226226 * *not* the same mechanism.
227227 *
228- * @param user
229- * @param password
228+ * @param user the username
229+ * @param password the password
230230 * @return if the connection is now authenticated.
231- * @throws IOException
231+ * @throws IOException on error
232232 */
233233 public synchronized boolean authenticateWithPassword (String user , String password ) throws IOException
234234 {
@@ -266,7 +266,7 @@ public synchronized boolean authenticateWithPassword(String user, String passwor
266266 *
267267 * @param user the username to attempt to log in as
268268 * @return if the connection is now authenticated.
269- * @throws IOException
269+ * @throws IOException on error
270270 */
271271 public synchronized boolean authenticateWithNone (String user ) throws IOException
272272 {
@@ -322,7 +322,7 @@ public synchronized boolean authenticateWithNone(String user) throws IOException
322322 * will be ignored and can be set to <code>null</code>.
323323 *
324324 * @return whether the connection is now authenticated.
325- * @throws IOException
325+ * @throws IOException on error
326326 */
327327 public synchronized boolean authenticateWithPublicKey (String user , char [] pemPrivateKey , String password )
328328 throws IOException
@@ -362,7 +362,7 @@ public synchronized boolean authenticateWithPublicKey(String user, char[] pemPri
362362 * corresponding PublicKey.
363363 *
364364 * @return whether the connection is now authenticated.
365- * @throws IOException
365+ * @throws IOException on error
366366 */
367367 public synchronized boolean authenticateWithPublicKey (String user , KeyPair pair )
368368 throws IOException
@@ -401,7 +401,7 @@ public synchronized boolean authenticateWithPublicKey(String user, KeyPair pair)
401401 * set to <code>null</code>.
402402 *
403403 * @return whether the connection is now authenticated.
404- * @throws IOException
404+ * @throws IOException on error
405405 */
406406 public synchronized boolean authenticateWithPublicKey (String user , File pemFile , String password )
407407 throws IOException
@@ -526,7 +526,7 @@ public synchronized void addConnectionMonitor(ConnectionMonitor cmon)
526526 * <p>
527527 * Note: This can only be called before connect()
528528 * @param enabled whether to enable compression
529- * @throws IOException
529+ * @throws IOException on error
530530 */
531531 public synchronized void setCompression (boolean enabled ) throws IOException {
532532 if (tm != null )
@@ -564,13 +564,11 @@ private void close(Throwable t, boolean hard)
564564
565565 /**
566566 * Same as
567- * {@link #connect(ServerHostKeyVerifier, int, int) connect(null, 0, 0)}.
568- *
569- * @return see comments for the
570- * {@link #connect(ServerHostKeyVerifier, int, int) connect(ServerHostKeyVerifier, int, int)}
571- * method.
572- * @throws IOException
573- */
567+ * @return see comments for the
568+ * {@link #connect(ServerHostKeyVerifier, int, int) connect(ServerHostKeyVerifier, int, int)}
569+ * method.
570+ * @throws IOException on error
571+ */
574572 public synchronized ConnectionInfo connect () throws IOException
575573 {
576574 return connect (null , 0 , 0 );
@@ -583,7 +581,8 @@ public synchronized ConnectionInfo connect() throws IOException
583581 * @return see comments for the
584582 * {@link #connect(ServerHostKeyVerifier, int, int) connect(ServerHostKeyVerifier, int, int)}
585583 * method.
586- * @throws IOException
584+ * @param verifier the verifier
585+ * @throws IOException on error
587586 */
588587 public synchronized ConnectionInfo connect (ServerHostKeyVerifier verifier ) throws IOException
589588 {
@@ -652,7 +651,7 @@ public synchronized ConnectionInfo connect(ServerHostKeyVerifier verifier) throw
652651 * @return A {@link ConnectionInfo} object containing the details of the
653652 * established connection.
654653 *
655- * @throws IOException
654+ * @throws IOException on error
656655 * If any problem occurs, e.g., the server's host key is not
657656 * accepted by the <code>verifier</code> or there is problem
658657 * during the initial crypto setup (e.g., the signature sent by
@@ -826,7 +825,7 @@ public void run()
826825 * @param port_to_connect
827826 * target port
828827 * @return A {@link LocalPortForwarder} object.
829- * @throws IOException
828+ * @throws IOException on error
830829 */
831830 public synchronized LocalPortForwarder createLocalPortForwarder (int local_port , String host_to_connect ,
832831 int port_to_connect ) throws IOException
@@ -858,7 +857,7 @@ public synchronized LocalPortForwarder createLocalPortForwarder(int local_port,
858857 * @param port_to_connect
859858 * target port
860859 * @return A {@link LocalPortForwarder} object.
861- * @throws IOException
860+ * @throws IOException on error
862861 */
863862 public synchronized LocalPortForwarder createLocalPortForwarder (InetSocketAddress addr , String host_to_connect ,
864863 int port_to_connect ) throws IOException
@@ -879,10 +878,10 @@ public synchronized LocalPortForwarder createLocalPortForwarder(InetSocketAddres
879878 * another host (which may or may not be identical to the remote SSH-2
880879 * server).
881880 *
882- * @param host_to_connect
883- * @param port_to_connect
881+ * @param host_to_connect the host to connect to
882+ * @param port_to_connect the port to connect to
884883 * @return A {@link LocalStreamForwarder} object.
885- * @throws IOException
884+ * @throws IOException on error
886885 */
887886 public synchronized LocalStreamForwarder createLocalStreamForwarder (String host_to_connect , int port_to_connect )
888887 throws IOException
@@ -906,9 +905,9 @@ public synchronized LocalStreamForwarder createLocalStreamForwarder(String host_
906905 * authentication step. There is no limit on the number of concurrent
907906 * forwardings.
908907 *
909- * @param local_port
908+ * @param local_port the local port to bind to
910909 * @return A {@link DynamicPortForwarder} object.
911- * @throws IOException
910+ * @throws IOException on error
912911 */
913912 public synchronized DynamicPortForwarder createDynamicPortForwarder (int local_port ) throws IOException
914913 {
@@ -935,7 +934,7 @@ public synchronized DynamicPortForwarder createDynamicPortForwarder(int local_po
935934 * specifies the InetSocketAddress where the local socket shall
936935 * be bound to.
937936 * @return A {@link DynamicPortForwarder} object.
938- * @throws IOException
937+ * @throws IOException on error
939938 */
940939 public synchronized DynamicPortForwarder createDynamicPortForwarder (InetSocketAddress addr ) throws IOException
941940 {
@@ -979,8 +978,7 @@ public synchronized SCPClient createSCPClient() {
979978 * Note: This implementation will never start a key exchange (other than the
980979 * initial one) unless you or the SSH-2 server ask for it.
981980 *
982- * @throws IOException
983- * In case of any failure behind the scenes.
981+ * @throws IOException In case of any failure behind the scenes.
984982 */
985983 public synchronized void forceKeyExchange () throws IOException
986984 {
@@ -1016,8 +1014,7 @@ public synchronized int getPort()
10161014 * (successfully connected).
10171015 *
10181016 * @return A {@link ConnectionInfo} object.
1019- * @throws IOException
1020- * In case of any failure behind the scenes.
1017+ * @throws IOException In case of any failure behind the scenes.
10211018 */
10221019 public synchronized ConnectionInfo getConnectionInfo () throws IOException
10231020 {
@@ -1050,7 +1047,7 @@ public synchronized ConnectionInfo getConnectionInfo() throws IOException
10501047 * A <code>String</code> holding the username.
10511048 *
10521049 * @return a (possibly emtpy) array holding authentication method names.
1053- * @throws IOException
1050+ * @throws IOException on error
10541051 */
10551052 public synchronized String [] getRemainingAuthMethods (String user ) throws IOException
10561053 {
@@ -1115,7 +1112,7 @@ public synchronized boolean isAuthenticationPartialSuccess()
11151112 * An authentication method name (e.g., "publickey", "password",
11161113 * "keyboard-interactive") as specified by the SSH-2 standard.
11171114 * @return if the specified authentication method is currently available.
1118- * @throws IOException
1115+ * @throws IOException on error
11191116 */
11201117 public synchronized boolean isAuthMethodAvailable (String user , String method ) throws IOException
11211118 {
@@ -1147,7 +1144,7 @@ private final SecureRandom getOrCreateSecureRND()
11471144 * number of concurrent sessions.
11481145 *
11491146 * @return A {@link Session} object.
1150- * @throws IOException
1147+ * @throws IOException on error
11511148 */
11521149 public synchronized Session openSession () throws IOException
11531150 {
@@ -1167,7 +1164,7 @@ public synchronized Session openSession() throws IOException
11671164 * <p>
11681165 * This method must only be called once the connection is established.
11691166 *
1170- * @throws IOException
1167+ * @throws IOException on error
11711168 */
11721169 public synchronized void sendIgnorePacket () throws IOException
11731170 {
@@ -1184,7 +1181,8 @@ public synchronized void sendIgnorePacket() throws IOException
11841181 * <p>
11851182 * This method must only be called once the connection is established.
11861183 *
1187- * @throws IOException
1184+ * @param data the data to send
1185+ * @throws IOException on error
11881186 */
11891187 public synchronized void sendIgnorePacket (byte [] data ) throws IOException
11901188 {
@@ -1252,7 +1250,7 @@ private String[] removeDuplicates(String[] list)
12521250 /**
12531251 * Unless you know what you are doing, you will never need this.
12541252 *
1255- * @param ciphers
1253+ * @param ciphers the ciphers
12561254 */
12571255 public synchronized void setClient2ServerCiphers (String [] ciphers )
12581256 {
@@ -1266,7 +1264,7 @@ public synchronized void setClient2ServerCiphers(String[] ciphers)
12661264 /**
12671265 * Unless you know what you are doing, you will never need this.
12681266 *
1269- * @param macs
1267+ * @param macs array of MAC types
12701268 */
12711269 public synchronized void setClient2ServerMACs (String [] macs )
12721270 {
@@ -1297,7 +1295,7 @@ public synchronized void setDHGexParameters(DHGexParameters dgp)
12971295 /**
12981296 * Unless you know what you are doing, you will never need this.
12991297 *
1300- * @param ciphers
1298+ * @param ciphers the ciphers
13011299 */
13021300 public synchronized void setServer2ClientCiphers (String [] ciphers )
13031301 {
@@ -1311,7 +1309,7 @@ public synchronized void setServer2ClientCiphers(String[] ciphers)
13111309 /**
13121310 * Unless you know what you are doing, you will never need this.
13131311 *
1314- * @param macs
1312+ * @param macs array of MAC types
13151313 */
13161314 public synchronized void setServer2ClientMACs (String [] macs )
13171315 {
@@ -1430,7 +1428,7 @@ public synchronized void setProxyData(ProxyData proxyData)
14301428 * the target address (IP or hostname)
14311429 * @param targetPort
14321430 * the target port
1433- * @throws IOException
1431+ * @throws IOException on error
14341432 */
14351433 public synchronized void requestRemotePortForwarding (String bindAddress , int bindPort , String targetAddress ,
14361434 int targetPort ) throws IOException
@@ -1455,10 +1453,7 @@ public synchronized void requestRemotePortForwarding(String bindAddress, int bin
14551453 *
14561454 * @param bindPort
14571455 * the allocated port number on the server
1458- * @throws IOException
1459- * if the remote side refuses the cancel request or another low
1460- * level error occurs (e.g., the underlying connection is
1461- * closed)
1456+ * @throws IOException if the remote side refuses the cancel request or another low level error occurs (e.g., the underlying connection is closed)
14621457 */
14631458 public synchronized void cancelRemotePortForwarding (int bindPort ) throws IOException
14641459 {
@@ -1548,8 +1543,7 @@ public void log(int level, String className, String message)
15481543 * request ('trilead-ping') to the server and waits for the
15491544 * SSH_MSG_REQUEST_FAILURE reply packet from the server.
15501545 *
1551- * @throws IOException
1552- * in case of any problem
1546+ * @throws IOException in case of any problem
15531547 */
15541548 public synchronized void ping () throws IOException
15551549 {
0 commit comments