com.sonyericsson.hudson.plugins.gerrit.gerritevents.ssh
Class SshUtil

java.lang.Object
  extended by com.sonyericsson.hudson.plugins.gerrit.gerritevents.ssh.SshUtil

public final class SshUtil
extends Object

Base util for connecting, authenticating and doing stuff on an ssh client->server connection.

Author:
Robert Sandell robert.sandell@sonyericsson.com

Method Summary
static boolean checkPassPhrase(File keyFilePath, String passPhrase)
          Checks to see if the passPhrase is valid for the private key file.
static boolean isPrivateKeyFileValid(File keyFile)
          Does a series of checks in the file to see if it is a valid private key file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isPrivateKeyFileValid

public static boolean isPrivateKeyFileValid(File keyFile)
Does a series of checks in the file to see if it is a valid private key file.

Parameters:
keyFile - the file
Returns:
true if valid.

checkPassPhrase

public static boolean checkPassPhrase(File keyFilePath,
                                      String passPhrase)
Checks to see if the passPhrase is valid for the private key file.

Parameters:
keyFilePath - the private key file.
passPhrase - the password for the file.
Returns:
true if it is valid.


Copyright © 2004-2012 Hudson. All Rights Reserved.