de.smartics.maven.plugin.buildmetadata.common
Class ScmCredentials

Package class diagram package ScmCredentials
java.lang.Object
  extended by de.smartics.maven.plugin.buildmetadata.common.ScmCredentials

public final class ScmCredentials
     
     
extends Object

The SCM connection information for authentication.

Author:
Robert Reiner

Constructor Summary
ScmCredentials(Settings settings, String userName, String password, String privateKey, String passphrase)
          Default constructor.
 
Method Summary
 void configureByServer(String host)
          Fetches the server information from the settings for the specified host.
 String getPassPhrase()
          Returns the pass phrase (used by java svn).
 String getPassword()
          Returns the user password (used by svn and starteam protocol).
 String getPrivateKey()
          Returns the private key (used by java svn).
 String getUserName()
          Returns the user name (used by svn and starteam protocol).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScmCredentials

public ScmCredentials(Settings settings,
                      String userName,
                      String password,
                      String privateKey,
                      String passphrase)
Default constructor.

Parameters:
settings - the settings to fetch SCM information.
userName - the user name (used by svn and starteam protocol).
password - the user password (used by svn and starteam protocol).
privateKey - the private key (used by java svn).
passphrase - the passphrase (used by java svn).
Method Detail

getUserName

public String getUserName()
Returns the user name (used by svn and starteam protocol).

Returns:
the user name (used by svn and starteam protocol).

getPassword

public String getPassword()
Returns the user password (used by svn and starteam protocol).

Returns:
the user password (used by svn and starteam protocol).

getPrivateKey

public String getPrivateKey()
Returns the private key (used by java svn).

Returns:
the private key (used by java svn).

getPassPhrase

public String getPassPhrase()
Returns the pass phrase (used by java svn).

Returns:
the pass phrase (used by java svn).

configureByServer

public void configureByServer(String host)
Fetches the server information from the settings for the specified host.

Parameters:
host - the host whose access information is fetched from the settings file.


Copyright © 2006-2012 Kronseder & Reiner GmbH - smartics. All Rights Reserved.