public class S3CFG extends Abstract implements CredentialHandler
CredentialHandler.TYPE| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String |
DESCRIPTION
The description
|
private java.lang.String |
mLocalCredentialPath
The local path to the credential
|
static java.lang.String |
S3CFG_FILE_VARIABLE
The name of the environment variable that specifies the path to the
s3cfg file.
|
private static java.lang.String |
S3CFG_PEGASUS_PROFILE_KEY |
mLogger, mProps, mSiteStoreVERSION| Constructor and Description |
|---|
S3CFG()
The default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getBaseName(java.lang.String site)
returns the basename of the path to the local credential
|
java.lang.String |
getDescription()
Returns the description for the implementing handler
|
java.lang.String |
getEnvironmentVariable(java.lang.String site)
Returns the name of the environment variable that needs to be set
for the job associated with the credential.
|
java.lang.String |
getLocalPath()
Returns the path to user cred on the local site.
|
java.lang.String |
getPath(java.lang.String site)
Returns the path to S3CFG .
|
java.lang.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, getSiteNameForEnvironmentKeyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPathpublic static final java.lang.String S3CFG_FILE_VARIABLE
private static final java.lang.String S3CFG_PEGASUS_PROFILE_KEY
private static final java.lang.String DESCRIPTION
private java.lang.String mLocalCredentialPath
public void initialize(PegasusBag bag)
initialize in interface CredentialHandlerinitialize in class Abstractbag - the bag of Pegasus objects.public java.lang.String getPath(java.lang.String site)
getPath in interface CredentialHandlersite - the site handlepublic java.lang.String getLocalPath()
site - the site catalog entry object.public java.lang.String getBaseName(java.lang.String site)
getBaseName in interface CredentialHandlersite - the site handlepublic java.lang.String getProfileKey()
getProfileKey in interface CredentialHandlerpublic java.lang.String getEnvironmentVariable(java.lang.String site)
getEnvironmentVariable in interface CredentialHandlerpublic java.lang.String getDescription()
getDescription in interface CredentialHandler