com.pax.dal.entity
Class ASCaller
- java.lang.Object
-
- com.pax.dal.entity.ASCaller
-
public abstract class ASCaller extends java.lang.Object
高级权限接口使用流程如下: 1.应用方生成RSA公私钥对。 2.公钥发给PAX进行PUK签名,签名时需指定Owner信息。 3.应用在调用每个高权限接口时需要传入签名公钥与ASCaller。The usage process of the advanced permission interface is as follows: 1. The application generates RSA public-private key pairs. 2. The public key is sent to PAX for PUK signature. Owner information shall be specified during the signature. 3. The application needs to pass in the signed public key and ASCaller when calling each advanced permission interface.
-
-
Constructor Summary
Constructors Constructor and Description ASCaller()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description abstract byte[]getEncryptData(byte[] randoms)返回私钥加密的数据。调用者需要实现此方法。Returns data encrypted with the private key.
-
-
-
Constructor Detail
-
ASCaller
public ASCaller()
-
-
Method Detail
-
getEncryptData
public abstract byte[] getEncryptData(byte[] randoms)
返回私钥加密的数据。调用者需要实现此方法。Returns data encrypted with the private key. The caller needs to implement this method.- Parameters:
randoms-系统生成的8位随机数。The 8-bit random number generated by the system.- Returns:
- 用私钥将字符串"序列号(SN)+#+randoms+#+Owner"加密的密文。用"#"作为分割符,加密方式为:RSA/ECB/PKCS1Padding。Encrypt ciphertext of string "serial number (SN)+#+ Randoms +#+Owner" with private key. Encrypt using "#" as divider by :RSA/ECB/PKCS1Padding.
-
-