code: private <T extends AlipayResponse> ResponseEncryptItem encryptResponse(AlipayRequest<T> request,
                                                                             Map<String, Object> rt,
                                                                             AlipayParser<T> parser) throws AlipayApiException {
  
          String responseBody = (String) rt.get("rsp");
  
          String realBody = null;
  
          // 解密
          if (request.isNeedEncrypt()) {
  
              // 解密原始串
              realBody = parser.encryptSourceData(request, responseBody, this.format,
                  this.encryptType, this.encryptKey, this.charset);
          } else {
  
              // 解析原内容串
              realBody = (String) rt.get("rsp");
          }
  
          return new ResponseEncryptItem(responseBody, realBody);
  
      }
docs: 解密响应
  
  @param request
  @param rt
  @param parser
  @return
  @throws AlipayApiException