All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.zhibaocloud.carbon.intg.crypto.CarbonEncryptedResponse Maven / Gradle / Ivy

Go to download

智保云投保通道开发 SDK。定义数据模型以及数据交互所支持的加解密方法

The newest version!
/*
 * Copyright (c) 2018-2023. Chengdu WeiSiFan Technology Co., Ltd.
 * Carbon Integration SDK is licensed under Mulan PSL v2.
 *
 * You can use this software according to the terms and conditions of the Mulan PSL v2.
 * You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2
 *
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PSL v2 for more details.
 */

package com.zhibaocloud.carbon.intg.crypto;

import com.zhibaocloud.carbon.intg.CarbonVersion;
import java.util.UUID;

/**
 * 加密后的报文响应
 *
 * @author jun
 */
public class CarbonEncryptedResponse {

  /**
   * SDK 版本,用于判断兼容性
   */
  private CarbonVersion version = CarbonVersion.CURRENT;

  /**
   * 发送请求时的requestId,原样返回
   */
  private UUID requestId;

  /**
   * 签名,用于校验报文的完整性
   */
  private String sign;

  /**
   * 租户标识符
   */
  private String tenant;

  /**
   * 加密报文信息
   */
  private String payload;

  /**
   * 使用getter将version.toString()作为版本号序列化结果
   */
  public String getVersion() {
    return version.toString();
  }

  public void setVersion(CarbonVersion version) {
    this.version = version;
  }

  public UUID getRequestId() {
    return requestId;
  }

  public void setRequestId(UUID requestId) {
    this.requestId = requestId;
  }

  public String getSign() {
    return sign;
  }

  public void setSign(String sign) {
    this.sign = sign;
  }

  public String getTenant() {
    return tenant;
  }

  public void setTenant(String tenant) {
    this.tenant = tenant;
  }

  public String getPayload() {
    return payload;
  }


  public CarbonEncryptedResponse() {
  }

  public void setPayload(String payload) {
    this.payload = payload;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy