com.zhbiaocloud.carbon.crypto.EncryptedRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of carbon-exchange Show documentation
Show all versions of carbon-exchange Show documentation
智保云数据平台开发 SDK。定义数据模型以及数据交互所支持的加解密方法
/*
* 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.zhbiaocloud.carbon.crypto;
import com.zhbiaocloud.carbon.Version;
import com.zhbiaocloud.carbon.model.MessageType;
import java.util.UUID;
import lombok.Data;
/**
* 加密后的报文请求
*
* @author jun
*/
@Data
public class EncryptedRequest {
/**
* SDK 版本,用于判断兼容性
*/
private Version version = Version.CURRENT;
/**
* 用于对每个请求进行唯一标识。该标识会在响应报文中回复
*/
private UUID requestId;
/**
* 签名,用于校验报文的完整性
*/
private String sign;
/**
* 租户标识符
*/
private String tenant;
/**
* 加密报文信息
*/
private String payload;
/**
* 加密数据类型,用于反序列化时识别数据类型
*/
private MessageType type;
}