
com.lazycece.au.api.params.ApiParams Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of au-api-params Show documentation
Show all versions of au-api-params Show documentation
Parameter signature, encryption and decryption .
package com.lazycece.au.api.params;
import org.apache.commons.lang3.StringUtils;
/**
* @author lazycece
* @date 2019/11/20
*/
public class ApiParams implements Validator {
private Long time;
private String salt;
/**
* params signature
*/
private String sign;
/**
* encode data, maybe null
*/
private String data;
public Long getTime() {
return time;
}
public void setTime(Long time) {
this.time = time;
}
public String getSalt() {
return salt;
}
public void setSalt(String salt) {
this.salt = salt;
}
public String getSign() {
return sign;
}
public void setSign(String sign) {
this.sign = sign;
}
public String getData() {
return data;
}
public void setData(String data) {
this.data = data;
}
@Override
public boolean validate() {
return this.time != null
&& !StringUtils.isBlank(this.salt)
&& !StringUtils.isBlank(this.sign);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy