com.gitee.cliveyuan.tools.bean.rsa.RSAVerifySignReq Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-tools Show documentation
Show all versions of java-tools Show documentation
Some commonly used methods in java
package com.gitee.cliveyuan.tools.bean.rsa;
import lombok.Builder;
import lombok.Data;
import java.io.Serializable;
/**
* Created by Clive on 2020/02/22.
*/
@Data
@Builder
public class RSAVerifySignReq implements Serializable {
// region required
/**
* 需要验证签名的数据字符串 (必传)
*/
private String data;
/**
* 签名字符串(长度:1024-->128 2048-->256) (必传)
*/
private String sign;
/**
* RSA公钥 (必传)
*/
private String publicKeyString;
// endregion required
// region optional
/**
* 密钥算法, 默认 RSA
*/
private String keyAlgorithm;
/**
* 签名算法, 默认 SHA256withRSA
*/
private String signatureAlgorithm;
/**
* 编码方式, 默认 UTF-8
*/
private String charset;
// endregion optional
}