public class DefaultAlipayClient extends AbstractAlipayClient
Modifier and Type | Class and Description |
---|---|
static class |
DefaultAlipayClient.Builder
The type Builder.
|
Constructor and Description |
---|
DefaultAlipayClient(String serverUrl,
String appId,
String privateKey)
Instantiates a new Default alipay client.
|
DefaultAlipayClient(String serverUrl,
String appId,
String privateKey,
String format)
Instantiates a new Default alipay client.
|
DefaultAlipayClient(String serverUrl,
String appId,
String privateKey,
String format,
String charset)
Instantiates a new Default alipay client.
|
DefaultAlipayClient(String serverUrl,
String appId,
String privateKey,
String format,
String charset,
String alipayPublicKey)
Instantiates a new Default alipay client.
|
DefaultAlipayClient(String serverUrl,
String appId,
String privateKey,
String format,
String charset,
String alipayPublicKey,
String signType)
Instantiates a new Default alipay client.
|
DefaultAlipayClient(String serverUrl,
String appId,
String privateKey,
String format,
String charset,
String alipayPublicKey,
String signType,
String proxyHost,
int proxyPort)
Instantiates a new Default alipay client.
|
DefaultAlipayClient(String serverUrl,
String appId,
String privateKey,
String format,
String charset,
String alipayPublicKey,
String signType,
String encryptKey,
String encryptType)
Instantiates a new Default alipay client.
|
Modifier and Type | Method and Description |
---|---|
static DefaultAlipayClient.Builder |
builder(String serverUrl,
String appId,
String privateKey)
Builder builder.
|
Decryptor |
getDecryptor()
Gets decryptor.
|
Encryptor |
getEncryptor()
Gets encryptor.
|
SignChecker |
getSignChecker()
Gets sign checker.
|
Signer |
getSigner()
Gets signer.
|
void |
setAlipayPublicKey(String alipayPublicKey)
Sets alipay public key.
|
void |
setEncryptKey(String encryptKey)
Sets encrypt key.
|
void |
setPrivateKey(String privateKey)
Sets private key.
|
execute, execute, execute, pageExecute, pageExecute, parseAppSyncResult, sdkExecute
public DefaultAlipayClient(String serverUrl, String appId, String privateKey)
serverUrl
- the server urlappId
- the app idprivateKey
- the private keypublic DefaultAlipayClient(String serverUrl, String appId, String privateKey, String format)
serverUrl
- the server urlappId
- the app idprivateKey
- the private keyformat
- the formatpublic DefaultAlipayClient(String serverUrl, String appId, String privateKey, String format, String charset)
serverUrl
- the server urlappId
- the app idprivateKey
- the private keyformat
- the formatcharset
- the charsetpublic DefaultAlipayClient(String serverUrl, String appId, String privateKey, String format, String charset, String alipayPublicKey)
serverUrl
- the server urlappId
- the app idprivateKey
- the private keyformat
- the formatcharset
- the charsetalipayPublicKey
- the alipay public keypublic DefaultAlipayClient(String serverUrl, String appId, String privateKey, String format, String charset, String alipayPublicKey, String signType)
serverUrl
- the server urlappId
- the app idprivateKey
- the private keyformat
- the formatcharset
- the charsetalipayPublicKey
- the alipay public keysignType
- the sign typepublic DefaultAlipayClient(String serverUrl, String appId, String privateKey, String format, String charset, String alipayPublicKey, String signType, String proxyHost, int proxyPort)
serverUrl
- the server urlappId
- the app idprivateKey
- the private keyformat
- the formatcharset
- the charsetalipayPublicKey
- the alipay public keysignType
- the sign typeproxyHost
- the proxy hostproxyPort
- the proxy portpublic DefaultAlipayClient(String serverUrl, String appId, String privateKey, String format, String charset, String alipayPublicKey, String signType, String encryptKey, String encryptType)
serverUrl
- the server urlappId
- the app idprivateKey
- the private keyformat
- the formatcharset
- the charsetalipayPublicKey
- the alipay public keysignType
- the sign typeencryptKey
- the encrypt keyencryptType
- the encrypt typepublic Signer getSigner()
AbstractAlipayClient
getSigner
in class AbstractAlipayClient
public SignChecker getSignChecker()
AbstractAlipayClient
getSignChecker
in class AbstractAlipayClient
public Encryptor getEncryptor()
AbstractAlipayClient
getEncryptor
in class AbstractAlipayClient
public Decryptor getDecryptor()
AbstractAlipayClient
getDecryptor
in class AbstractAlipayClient
public void setPrivateKey(String privateKey)
privateKey
- the private keypublic void setEncryptKey(String encryptKey)
encryptKey
- the encrypt keypublic void setAlipayPublicKey(String alipayPublicKey)
alipayPublicKey
- the alipay public keypublic static DefaultAlipayClient.Builder builder(String serverUrl, String appId, String privateKey)
serverUrl
- the server urlappId
- the app idprivateKey
- the private keyCopyright © 2018. All rights reserved.