org.soyatec.windowsazure.management
Class StorageAccountKey

java.lang.Object
  extended by org.soyatec.windowsazure.management.StorageAccountKey

public class StorageAccountKey
extends java.lang.Object

The class contains the account keys for accessing the Windows Azure storage services.


Constructor Summary
StorageAccountKey()
          Construct a new StorageAccountKey object.
StorageAccountKey(java.lang.String primaryKey, java.lang.String secondaryKey)
          Construct a new StorageAccountKey object with a primary key and secondary key.
 
Method Summary
 java.lang.String getKey(java.lang.String type)
          Get the key of the type.
 java.lang.String getPrimaryKey()
           
 java.lang.String getSecondaryKey()
           
 void setPrimaryKey(java.lang.String primaryKey)
          Set the primaryKey of StorageAccountKey.
 void setSecondaryKey(java.lang.String secondaryKey)
          Set the secondaryKey of StorageAccountKey.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StorageAccountKey

public StorageAccountKey(java.lang.String primaryKey,
                         java.lang.String secondaryKey)
Construct a new StorageAccountKey object with a primary key and secondary key.


StorageAccountKey

public StorageAccountKey()
Construct a new StorageAccountKey object.

Method Detail

getPrimaryKey

public java.lang.String getPrimaryKey()
Returns:
the primaryKey of StorageAccountKey.

setPrimaryKey

public void setPrimaryKey(java.lang.String primaryKey)
Set the primaryKey of StorageAccountKey.

Parameters:
primaryKey -

getSecondaryKey

public java.lang.String getSecondaryKey()
Returns:
the secondaryKey of StorageAccountKey.

setSecondaryKey

public void setSecondaryKey(java.lang.String secondaryKey)
Set the secondaryKey of StorageAccountKey.

Parameters:
secondaryKey -

getKey

public java.lang.String getKey(java.lang.String type)
Get the key of the type.

Parameters:
type -
Returns:
If the type equals to the Primary key type, return primaryKey; else if the type equals to the Secondary key type, return secondaryKey. else return empty.