public class GSCredentials extends ProviderCredentials
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 |
---|---|
String |
getVersionPrefix() |
static ProviderCredentials |
load(String password,
BufferedInputStream inputStream) |
static ProviderCredentials |
load(String password,
File file) |
getAccessKey, getFriendlyName, getLogString, getSecretKey, hasFriendlyName, save, save, save, save
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'.public String getVersionPrefix()
public static ProviderCredentials load(String password, File file) throws ServiceException
ServiceException
public static ProviderCredentials load(String password, BufferedInputStream inputStream) throws ServiceException
ServiceException