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.


Field Summary
protected static java.lang.String GS_TYPE_NAME
           
 
Fields inherited from class org.jets3t.service.security.ProviderCredentials
accessKey, CREDENTIALS_STORAGE_VERSION, friendlyName, log, secretKey, V2_KEYS_DELIMITER, V3_KEYS_DELIMITER
 
Constructor Summary
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.
 
Method Summary
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)
           
 
Methods inherited from class org.jets3t.service.security.ProviderCredentials
getAccessKey, getDataToEncrypt, getFriendlyName, getLogString, getSecretKey, hasFriendlyName, save, save, save, save
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GS_TYPE_NAME

protected static final java.lang.String GS_TYPE_NAME
See Also:
Constant Field Values
Constructor Detail

GSCredentials

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

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

GSCredentials

public GSCredentials(java.lang.String accessKey,
                     java.lang.String secretKey,
                     java.lang.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

getTypeName

protected java.lang.String getTypeName()
Specified by:
getTypeName in class ProviderCredentials
Returns:
string representing this credential type's name (for serialization)

getVersionPrefix

public java.lang.String getVersionPrefix()
Specified by:
getVersionPrefix in class ProviderCredentials

load

public static ProviderCredentials load(java.lang.String password,
                                       java.io.File file)
                                throws ServiceException
Throws:
ServiceException

load

public static ProviderCredentials load(java.lang.String password,
                                       java.io.BufferedInputStream inputStream)
                                throws ServiceException
Throws:
ServiceException