|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dasein.cloud.ProviderContext
public class ProviderContext
The contextual information necessary for making calls to a cloud provider. Each provider requires a provider context in order to connect to the target cloud account and perform operations within the cloud. This context includes the account number, operational region, and any number of authentication keys.
| Constructor Summary | |
|---|---|
ProviderContext()
Constructs a new, empty provider context for managing the provider context information. |
|
ProviderContext(String accountNumber,
String inRegionId)
Constructs a new provider context for the specified account number in the specified region. |
|
| Method Summary | |
|---|---|
void |
clear()
Clears out all keys being stored by this provider. |
static void |
clear(byte[]... keys)
Helper method for clearing out credentials with random data. |
byte[] |
getAccessPrivate()
The private access key is the primary authentication password for web services calls. |
byte[] |
getAccessPublic()
The public access key is the primary authentication user ID for web services calls. |
String |
getAccountNumber()
|
String |
getCloudName()
Provides the name of the cloud being accessed through this API. |
Properties |
getCustomProperties()
Provides any properties specific to the underlying Dasein Cloud implementation that will help it interact with thge underlying cloud. |
String |
getEndpoint()
Provides the endpoint through which cloud API calls are routed. |
String |
getProviderName()
Provides the name of the organization providing cloud services. |
String |
getRegionId()
|
byte[] |
getStoragePrivate()
The storage private key is the private key used for cloud storage access. |
byte[] |
getStoragePublic()
The storage public key is the public key used for cloud storage access. |
void |
setAccessKeys(byte[] publicKey,
byte[] privateKey)
Establishes the access key values. |
void |
setAccessPrivate(byte[] accessPrivate)
Sets the private access key. |
void |
setAccessPublic(byte[] accessPublic)
Sets the public access key. |
void |
setAccountNumber(String accountNumber)
Sets the account number for this provider context. |
void |
setCloudName(String name)
Sets the name of the cloud supported by this context. |
void |
setCustomProperties(Properties properties)
Establishes any custom properties for use by the Dasein Cloud implementation. |
void |
setEndpoint(String endpoint)
Sets the cloud endpoint for the provider context. |
void |
setProviderName(String name)
Sets the name of the organization providing cloud services. |
void |
setRegionId(String regionId)
Sets the region context for this provider context. |
void |
setStorageKeys(byte[] publicKey,
byte[] privateKey)
Sets the storage keypair for this provider context. |
void |
setStoragePrivate(byte[] storagePrivate)
Sets the storage private key. |
void |
setStoragePublic(byte[] storagePublic)
Sets the storage public key value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProviderContext()
public ProviderContext(String accountNumber,
String inRegionId)
accountNumber - the account number for the account in the cloudinRegionId - the region to be referenced by this provider context| Method Detail |
|---|
public static void clear(byte[]... keys)
keys - a list of credentials to fill with random datapublic void clear()
public byte[] getAccessPrivate()
public byte[] getAccessPublic()
public String getAccountNumber()
public String getCloudName()
public Properties getCustomProperties()
public String getEndpoint()
public String getProviderName()
public String getRegionId()
public byte[] getStoragePrivate()
public byte[] getStoragePublic()
public void setAccessKeys(byte[] publicKey,
byte[] privateKey)
publicKey - the public key part of the access keyprivateKey - the private key part of the access keypublic void setAccessPrivate(byte[] accessPrivate)
accessPrivate - the proper private access key value.public void setAccessPublic(byte[] accessPublic)
accessPublic - the proper public access key valuepublic void setAccountNumber(String accountNumber)
accountNumber - the account number associated with the provider accountpublic void setCloudName(String name)
name - the name of the underlying cloudpublic void setCustomProperties(Properties properties)
properties - custom properties for the Dasein Cloud implementationpublic void setEndpoint(String endpoint)
host - the host to which cloud API calls are routedpublic void setProviderName(String name)
name - the name of the organization providing cloud servicespublic void setRegionId(String regionId)
regionId - the unique cloud ID for the region supporting this context
public void setStorageKeys(byte[] publicKey,
byte[] privateKey)
publicKey - the storage key public keyprivateKey - the storage key private keypublic void setStoragePrivate(byte[] storagePrivate)
storagePrivate - the storage private keypublic void setStoragePublic(byte[] storagePublic)
storagePublic - the storage public key
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright © 2009 enStratus Networks LLC – Available under the terms of the Artistic License 2.0.