public class GSCredentials extends ProviderCredentials
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
GS_TYPE_NAME |
accessKey, CREDENTIALS_STORAGE_VERSION, friendlyName, log, secretKey, V2_KEYS_DELIMITER, V3_KEYS_DELIMITER
Constructor and Description |
---|
GSCredentials(java.lang.String accessKey,
java.lang.String secretKey)
Construct credentials.
|
GSCredentials(java.lang.String accessKey,
java.lang.String secretKey,
java.lang.String friendlyName)
Construct credentials, and associate them with a human-friendly name.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getTypeName() |
java.lang.String |
getVersionPrefix() |
static ProviderCredentials |
load(java.lang.String password,
java.io.BufferedInputStream inputStream) |
static ProviderCredentials |
load(java.lang.String password,
java.io.File file) |
getAccessKey, getDataToEncrypt, getFriendlyName, getLogString, getSecretKey, hasFriendlyName, save, save, save, save
protected static final java.lang.String GS_TYPE_NAME
public GSCredentials(java.lang.String accessKey, java.lang.String secretKey)
accessKey
- Access key for a Google Storage account.secretKey
- Secret key for a Google Storage account.public GSCredentials(java.lang.String accessKey, java.lang.String secretKey, java.lang.String friendlyName)
accessKey
- Access key for a Google Storage account.secretKey
- Secret key for a Google Storage account.friendlyName
- a name identifying the owner of the credentials, such as 'James'.protected java.lang.String getTypeName()
getTypeName
in class ProviderCredentials
public java.lang.String getVersionPrefix()
getVersionPrefix
in class ProviderCredentials
public static ProviderCredentials load(java.lang.String password, java.io.File file) throws ServiceException
ServiceException
public static ProviderCredentials load(java.lang.String password, java.io.BufferedInputStream inputStream) throws ServiceException
ServiceException