|
|
|
|
@ -0,0 +1,31 @@
|
|
|
|
|
package com.yau.digitalrmb.corporatewallet.application;
|
|
|
|
|
|
|
|
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
|
|
import lombok.Getter;
|
|
|
|
|
|
|
|
|
|
@Getter
|
|
|
|
|
@Schema(description = "远程开立-密钥信息")
|
|
|
|
|
public class RemoteWalletKeyResult {
|
|
|
|
|
@Schema(description = "密钥类型(如:企业法人私钥、企业法人公钥等)")
|
|
|
|
|
private final String keyType;
|
|
|
|
|
@Schema(description = "持有方(如:张三(创新科技公司))")
|
|
|
|
|
private final String holder;
|
|
|
|
|
@Schema(description = "密码算法(SM2)")
|
|
|
|
|
private final String keyAlgorithm;
|
|
|
|
|
@Schema(description = "密钥值(十六进制)")
|
|
|
|
|
private final String keyValue;
|
|
|
|
|
@Schema(description = "是否为私钥")
|
|
|
|
|
private final boolean privateKey;
|
|
|
|
|
@Schema(description = "密钥来源:REUSED-复用已有, NEW-新生成")
|
|
|
|
|
private final String source;
|
|
|
|
|
|
|
|
|
|
public RemoteWalletKeyResult(String keyType, String holder, String keyAlgorithm,
|
|
|
|
|
String keyValue, boolean privateKey, String source) {
|
|
|
|
|
this.keyType = keyType;
|
|
|
|
|
this.holder = holder;
|
|
|
|
|
this.keyAlgorithm = keyAlgorithm;
|
|
|
|
|
this.keyValue = keyValue;
|
|
|
|
|
this.privateKey = privateKey;
|
|
|
|
|
this.source = source;
|
|
|
|
|
}
|
|
|
|
|
}
|