public class Ssh extends Abstract implements CredentialHandler
CredentialHandler.TYPE
Modifier and Type | Field and Description |
---|---|
private static String |
DESCRIPTION
The description
|
private String |
mLocalCredentialPath
The local path to the credential
|
private static String |
SSH_PRIVATE_KEY_PEGASUS_PROFILE_KEY |
static String |
SSH_PRIVATE_KEY_VARIABLE
The name of the environment variable that specifies the path to the
SSH key.
|
mLogger, mProps, mSiteStore
VERSION
Constructor and Description |
---|
Ssh()
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getBaseName(String site)
returns the basename of the path to the local credential
|
String |
getDescription()
Returns the description for the implementing handler
|
String |
getEnvironmentVariable(String site)
Returns the name of the environment variable that needs to be set
for the job associated with the credential.
|
String |
getLocalPath()
Returns the path to user cred on the local site.
|
String |
getPath(String site)
Returns the path to SSH_PRIVATE_KEY .
|
String |
getProfileKey()
Returns the env or pegasus profile key that needs to be associated
for the credential.
|
void |
initialize(PegasusBag bag)
Initializes the credential implementation.
|
getPath, getSiteNameForEnvironmentKey
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPath
public static final String SSH_PRIVATE_KEY_VARIABLE
private static final String SSH_PRIVATE_KEY_PEGASUS_PROFILE_KEY
private static final String DESCRIPTION
private String mLocalCredentialPath
public void initialize(PegasusBag bag)
initialize
in interface CredentialHandler
initialize
in class Abstract
bag
- the bag of Pegasus objects.public String getPath(String site)
getPath
in interface CredentialHandler
site
- the site handlepublic String getLocalPath()
site
- the site catalog entry object.public String getBaseName(String site)
getBaseName
in interface CredentialHandler
site
- the site handlepublic String getProfileKey()
getProfileKey
in interface CredentialHandler
public String getEnvironmentVariable(String site)
getEnvironmentVariable
in interface CredentialHandler
public String getDescription()
getDescription
in interface CredentialHandler