public class GSCredentials extends ProviderCredentials
Constructor | 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 | Description |
---|---|---|
String |
getVersionPrefix() |
|
static ProviderCredentials |
load(String password,
BufferedInputStream inputStream) |
|
static ProviderCredentials |
load(String password,
File file) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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