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

com.zhibaocloud.carbon.intg.CarbonOption 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;

import com.zhibaocloud.carbon.intg.crypto.CryptoConfiguration;
import com.zhibaocloud.carbon.intg.serializer.SerializationConfiguration;
import java.net.URI;

/**
 * 用于指定和智保云数据平台的连接参数
 *
 * @author jun
 */
public class CarbonOption {

  /**
   * 服务地址,用于区分测试环境、预发布环境和生产环境
   */
  private URI endpoint;

  /**
   * 租户标识符。接收方可以根据每个租户的标识符,确定加解密方式
   */
  private String tenant;

  /**
   * 对称加密配置
   */
  private CryptoConfiguration crypto = new CryptoConfiguration();

  /**
   * 序列化配置
   */
  private SerializationConfiguration serialization = new SerializationConfiguration();

  public URI getEndpoint() {
    return endpoint;
  }

  public void setEndpoint(URI endpoint) {
    this.endpoint = endpoint;
  }

  public String getTenant() {
    return tenant;
  }

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

  public CryptoConfiguration getCrypto() {
    return crypto;
  }

  public void setCrypto(CryptoConfiguration crypto) {
    this.crypto = crypto;
  }

  public SerializationConfiguration getSerialization() {
    return serialization;
  }

  public void setSerialization(SerializationConfiguration serialization) {
    this.serialization = serialization;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy