org.jets3t.service.security
Class GSCredentials

java.lang.Object
  extended by org.jets3t.service.security.ProviderCredentials
      extended by org.jets3t.service.security.GSCredentials

public class GSCredentials
extends ProviderCredentials

Class to contain the Google Storage (GS) credentials of a user.

Author:
Google developers

Constructor Summary
GSCredentials(String accessKey, String secretKey)
          Construct credentials.
GSCredentials(String accessKey, String secretKey, String friendlyName)
          Construct credentials, and associate them with a human-friendly name.
 
Method Summary
 String getVersionPrefix()
           
static ProviderCredentials load(String password, BufferedInputStream inputStream)
           
static ProviderCredentials load(String password, File file)
           
 
Methods inherited from class org.jets3t.service.security.ProviderCredentials
getAccessKey, getFriendlyName, getLogString, getSecretKey, hasFriendlyName, save, save, save, save
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GSCredentials

public GSCredentials(String accessKey,
                     String secretKey)
Construct credentials.

Parameters:
accessKey - Access key for a Google Storage account.
secretKey - Secret key for a Google Storage account.

GSCredentials

public GSCredentials(String accessKey,
                     String secretKey,
                     String friendlyName)
Construct credentials, and associate them with a human-friendly name.

Parameters:
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'.
Method Detail

getVersionPrefix

public String getVersionPrefix()

load

public static ProviderCredentials load(String password,
                                       File file)
                                throws ServiceException
Throws:
ServiceException

load

public static ProviderCredentials load(String password,
                                       BufferedInputStream inputStream)
                                throws ServiceException
Throws:
ServiceException