sydapi/src/main/java/com/sunyard/inf/customize/SydUnionPayApi.java

34 lines
1.0 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package com.sunyard.inf.customize;
/**
* 银联接口
*/
public interface SydUnionPayApi {
/**
* 用指定的证书私钥对指定的数据进行数字签名。
* 银联
* @param pCertSerial 输入。签名 X509 证书的序列号。
* @param userId 输入。用户id。
* @param pOrgData 输入。 待签名的原始数据。
* @return 签名数据(BASE64 编码)。
*/
String netSign(String pCertSerial, String userId, byte[] pOrgData);
/**
* 用指定证书对指定的原始数据进行数字签名验证。
* 银联
* @param pCertSerial 输入。 签名 X509 证书的序列号。
* @param userId 输入。用户id。
* @param pOrgData 输入。 待签名的原始数据。
* @param pSignData 输入。 签名数据(BASE64 编码)。
* @return true 表示验证正确false 表示失败;
*/
boolean netVerify(
String pCertSerial,
String userId,
byte[] pOrgData,
String pSignData
);
}