Interface PrivacyEncryptor

All Known Implementing Classes:
AbstractPrivacyEncryptor, RSAPkcs1v15Encryptor, RSAPrivacyEncryptor

public interface PrivacyEncryptor
敏感信息加密器
  • Method Summary

    Modifier and Type
    Method
    Description
    encrypt(String plaintext)
    加密并转换为字符串
    获取加密使用公钥所属证书的证书序列号,可设置到请求的 HTTP 头部 Wechatpay-Serial
  • Method Details

    • encrypt

      String encrypt(String plaintext)
      加密并转换为字符串
      Parameters:
      plaintext - 明文
      Returns:
      Base64编码的密文
    • getWechatpaySerial

      String getWechatpaySerial()
      获取加密使用公钥所属证书的证书序列号,可设置到请求的 HTTP 头部 Wechatpay-Serial
      Returns:
      证书序列号