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

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

public class Authentication
extends Object

Represents authentication information to an SSH server connection.

Author:
Robert Sandell <robert.sandell@sonyericsson.com>
See Also:
SshConnection

Constructor Summary
Authentication(File privateKeyFile, String username)
          Constructor.
Authentication(File privateKeyFile, String username, String privateKeyFilePassword)
          Constructor.
 
Method Summary
 File getPrivateKeyFile()
          The file path to the private key.
 String getPrivateKeyFilePassword()
          The password for the private key file.
 String getUsername()
          The username to authenticate as.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Authentication

public Authentication(File privateKeyFile,
                      String username,
                      String privateKeyFilePassword)
Constructor.

Parameters:
privateKeyFile - the key.
username - the username.
privateKeyFilePassword - password for the key file, or null if there is none.

Authentication

public Authentication(File privateKeyFile,
                      String username)
Constructor. With null as privateKeyFilePassword.

Parameters:
privateKeyFile - the key.
username - the username.
Method Detail

getPrivateKeyFile

public File getPrivateKeyFile()
The file path to the private key.

Returns:
the path.

getPrivateKeyFilePassword

public String getPrivateKeyFilePassword()
The password for the private key file.

Returns:
the password.

getUsername

public String getUsername()
The username to authenticate as.

Returns:
the username.


Copyright © 2004-2012 Hudson. All Rights Reserved.