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

top.jfunc.http.paramsign.DefaultSignParam Maven / Gradle / Ivy

package top.jfunc.http.paramsign;

/**
 * @author xiongshiyan at 2020/8/10 , contact me with email [email protected] or phone 15208384257
 */
public class DefaultSignParam implements SignParam{
    /**
     * 请求方法
     */
    private final String method;
    /**
     * 路径
     */
    private final String path;
    /**
     * 传递过来的时间戳
     */
    private final String ts;
    /**
     * 传递过来的随机串
     */
    private final String nonceStr;
    /**
     * 签名方法
     */
    private final String signMethod;
    /**
     * 传递过来的签名
     */
    private final String sign;

    public DefaultSignParam(String method, String path, String ts, String nonceStr, String signMethod, String sign) {
        this.method     = method;
        this.path       = path;
        this.ts         = ts;
        this.nonceStr   = nonceStr;
        this.signMethod = signMethod;
        this.sign       = sign;
    }

    @Override
    public String getMethod() {
        return method;
    }

    @Override
    public String getPath() {
        return path;
    }

    @Override
    public String getTimeStamp() {
        return ts;
    }

    @Override
    public String getNonceStr() {
        return nonceStr;
    }

    @Override
    public String getSignMethod() {
        return signMethod;
    }

    @Override
    public String getSign() {
        return sign;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy