public class GSCredentials extends ProviderCredentials
Modifier and Type | Field and Description |
---|---|
protected static String |
GS_TYPE_NAME |
accessKey, CREDENTIALS_STORAGE_VERSION, friendlyName, log, secretKey, V2_KEYS_DELIMITER, V3_KEYS_DELIMITER
Constructor and Description |
---|
GSCredentials(String accessKey,
String secretKey)
Construct credentials.
|
GSCredentials(String accessKey,
String secretKey,
String friendlyName)
Construct credentials, and associate them with a human-friendly name.
|
Modifier and Type | Method and Description |
---|---|
protected String |
getTypeName() |
String |
getVersionPrefix() |
static ProviderCredentials |
load(String password,
BufferedInputStream inputStream) |
static ProviderCredentials |
load(String password,
File file) |
getAccessKey, getDataToEncrypt, getFriendlyName, getLogString, getSecretKey, hasFriendlyName, save, save, save, save
protected static final String GS_TYPE_NAME
public GSCredentials(String accessKey, String secretKey)
accessKey
- Access key for a Google Storage account.secretKey
- Secret key for a Google Storage account.public GSCredentials(String accessKey, String secretKey, 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 String getTypeName()
getTypeName
in class ProviderCredentials
public String getVersionPrefix()
getVersionPrefix
in class ProviderCredentials
public static ProviderCredentials load(String password, File file) throws ServiceException
ServiceException
public static ProviderCredentials load(String password, BufferedInputStream inputStream) throws ServiceException
ServiceException
Copyright © 2006–2018. All rights reserved.