org.soyatec.windowsazure.authenticate
Class StorageAccountInfo

java.lang.Object
  extended by org.soyatec.windowsazure.authenticate.StorageAccountInfo

public class StorageAccountInfo
extends java.lang.Object

Objects of this class encapsulate information about a storage account and endpoint configuration associated with a storage account is the account name, the base URI of the account and a shared key.


Field Summary
static java.lang.String DEVSTORE_ACCOUNT
          The name of the storage account
static java.lang.String DEVSTORE_KEY
          Authentication key used for signing requests
 
Constructor Summary
StorageAccountInfo(java.net.URI baseUri, boolean usePathStyleUris, java.lang.String accountName, java.lang.String base64Key)
          Constructor for creating account info objects.
 
Method Summary
 java.lang.String getAccountName()
           
 java.lang.String getBase64Key()
           
 java.net.URI getBaseUri()
           
 boolean isUsePathStyleUris()
           
 void setAccountName(java.lang.String accountName)
          Set the account name.
 void setBase64Key(java.lang.String base64Key)
          Set the account's shared key.
 void setBaseUri(java.net.URI baseUri)
          Set the account's base URI.
 void setUsePathStyleUris(boolean usePathStyleUris)
          Set usePathStyleUris.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEVSTORE_ACCOUNT

public static final java.lang.String DEVSTORE_ACCOUNT
The name of the storage account

See Also:
Constant Field Values

DEVSTORE_KEY

public static final java.lang.String DEVSTORE_KEY
Authentication key used for signing requests

See Also:
Constant Field Values
Constructor Detail

StorageAccountInfo

public StorageAccountInfo(java.net.URI baseUri,
                          boolean usePathStyleUris,
                          java.lang.String accountName,
                          java.lang.String base64Key)
Constructor for creating account info objects.

Parameters:
baseUri - The account's base URI.
usePathStyleUris - If true, path-style URIs (http://baseuri/accountname/containername/objectname) are used,If false host-style URIs (http://accountname.baseuri/containername/objectname) are used, where baseuri is the URI of the service..
accountName - The account name.
base64Key - The account's shared key.
Method Detail

isUsePathStyleUris

public boolean isUsePathStyleUris()
Returns:
usePathStyleUris If true, path-style URIs (http://baseuri/accountname/containername/objectname) are used,If false host-style URIs (http://accountname.baseuri/containername/objectname) are used, where baseuri is the URI of the service..

getBaseUri

public java.net.URI getBaseUri()
Returns:
the account's base URI.

getAccountName

public java.lang.String getAccountName()
Returns:
the account name.

getBase64Key

public java.lang.String getBase64Key()
Returns:
the account's shared key.

setUsePathStyleUris

public void setUsePathStyleUris(boolean usePathStyleUris)
Set usePathStyleUris.

Parameters:
usePathStyleUris - If true, path-style URIs (http://baseuri/accountname/containername/objectname) are used,If false host-style URIs (http://accountname.baseuri/containername/objectname) are used, where baseuri is the URI of the service..

setBaseUri

public void setBaseUri(java.net.URI baseUri)
Set the account's base URI.

Parameters:
baseUri -

setAccountName

public void setAccountName(java.lang.String accountName)
Set the account name.

Parameters:
accountName -

setBase64Key

public void setBase64Key(java.lang.String base64Key)
Set the account's shared key.

Parameters:
base64Key -