|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.xerox.amazonws.common.AWSConnection
com.xerox.amazonws.common.AWSQueryConnection
com.xerox.amazonws.devpay.DevPayLS
public class DevPayLS
This class provides an interface with the Amazon DevPay LS service. It provides high level methods for listing and creating and deleting domains.
| Field Summary |
|---|
| Fields inherited from class com.xerox.amazonws.common.AWSConnection |
|---|
headers |
| Constructor Summary | |
|---|---|
DevPayLS(String awsAccessId,
String awsSecretKey)
Initializes the devpay service with your AWS login information. |
|
DevPayLS(String awsAccessId,
String awsSecretKey,
boolean isSecure)
Initializes the devpay service with your AWS login information. |
|
DevPayLS(String awsAccessId,
String awsSecretKey,
boolean isSecure,
String server)
Initializes the devpay service with your AWS login information. |
|
DevPayLS(String awsAccessId,
String awsSecretKey,
boolean isSecure,
String server,
int port)
Initializes the devpay service with your AWS login information. |
|
| Method Summary | ||
|---|---|---|
DesktopProductInfo |
activateDesktopProduct(String activationKey,
String productToken)
Activates a desktop product. |
|
HostedProductInfo |
activateHostedProduct(String activationKey,
String productToken)
Activates a hosted product. |
|
List<String> |
getActiveSubscriptionsByPid(String persistentIdentifier)
Gets list of active subscriptions by persistent identifier |
|
int |
getSignatureVersion()
This method returns the signature version |
|
boolean |
isProductSubscribedByPid(String persistentIdentifier,
String productCode)
Verifies that a specified product is subscribed to by a customer. |
|
boolean |
isProductSubscribedByTokens(String productToken,
String userToken)
Verifies that a specified product is subscribed to by a customer. |
|
protected
|
makeRequestInt(org.apache.http.client.methods.HttpRequestBase method,
String action,
Map<String,String> params,
Class<T> respType)
|
|
String |
refreshUserToken(String userToken,
String additionalTokens)
Gets the most up-to-date version of the user token. |
|
void |
setSignatureVersion(int version)
This method sets the signature version used to sign requests (0 or 1). |
|
| Methods inherited from class com.xerox.amazonws.common.AWSQueryConnection |
|---|
close, close, getConnectionManagerTimeout, getConnectionTimeout, getHeaders, getHttpClient, getMaxConnections, getMaxRetries, getServerTimeZone, getSoTimeout, getString, httpDate, makeRequest, setConnectionManagerTimeout, setConnectionTimeout, setHttpClient, setMaxConnections, setMaxRetries, setProxyValues, setProxyValues, setProxyValues, setServerTimeZone, setSoTimeout, useSystemProxy |
| Methods inherited from class com.xerox.amazonws.common.AWSConnection |
|---|
encode, encode, getAlgorithm, getAwsAccessKeyId, getPort, getResourcePrefix, getSecretAccessKey, getServer, getUrl, isSecure, makeURL, setResourcePrefix, setServer, urlencode |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DevPayLS(String awsAccessId,
String awsSecretKey)
awsAccessId - The your user key into AWSawsSecretKey - The secret string used to generate signatures for authentication.
public DevPayLS(String awsAccessId,
String awsSecretKey,
boolean isSecure)
awsAccessId - The your user key into AWSawsSecretKey - The secret string used to generate signatures for authentication.isSecure - True if the data should be encrypted on the wire on the way to or from LS.
public DevPayLS(String awsAccessId,
String awsSecretKey,
boolean isSecure,
String server)
awsAccessId - The your user key into AWSawsSecretKey - The secret string used to generate signatures for authentication.isSecure - True if the data should be encrypted on the wire on the way to or from LS.server - Which host to connect to. Usually, this will be ls.amazonaws.com
public DevPayLS(String awsAccessId,
String awsSecretKey,
boolean isSecure,
String server,
int port)
awsAccessId - The your user key into AWSawsSecretKey - The secret string used to generate signatures for authentication.isSecure - True if the data should be encrypted on the wire on the way to or from LS.server - Which host to connect to. Usually, this will be ls.amazonaws.comport - Which port to use.| Method Detail |
|---|
public int getSignatureVersion()
getSignatureVersion in class AWSConnectionpublic void setSignatureVersion(int version)
setSignatureVersion in class AWSConnectionversion - signature version
public DesktopProductInfo activateDesktopProduct(String activationKey,
String productToken)
throws DevPayException
activationKey - key obtained from the customerproductToken - token for your product
DevPayException - wraps checked exceptions
public HostedProductInfo activateHostedProduct(String activationKey,
String productToken)
throws DevPayException
activationKey - key obtained from the customerproductToken - token for your product
DevPayException - wraps checked exceptions
public List<String> getActiveSubscriptionsByPid(String persistentIdentifier)
throws DevPayException
persistentIdentifier - customers's PID
DevPayException - wraps checked exceptions
public boolean isProductSubscribedByPid(String persistentIdentifier,
String productCode)
throws DevPayException
persistentIdentifier - customers's PIDproductCode - the product code
DevPayException - wraps checked exceptions
public boolean isProductSubscribedByTokens(String productToken,
String userToken)
throws DevPayException
productToken - the product tokenuserToken - the user token
DevPayException - wraps checked exceptions
public String refreshUserToken(String userToken,
String additionalTokens)
throws DevPayException
userToken - the user tokenadditionalTokens - optional token (see dev guide), null if not used
DevPayException - wraps checked exceptions
protected <T> T makeRequestInt(org.apache.http.client.methods.HttpRequestBase method,
String action,
Map<String,String> params,
Class<T> respType)
throws DevPayException
DevPayException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||