public class S3CFG 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
|
static String |
S3CFG_FILE_VARIABLE
The name of the environment variable that specifies the path to the
s3cfg file.
|
private static String |
S3CFG_PEGASUS_PROFILE_KEY |
mLogger, mProps, mSiteStore
VERSION
Constructor and Description |
---|
S3CFG()
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 S3CFG .
|
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 S3CFG_FILE_VARIABLE
private static final String S3CFG_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