com.github.yingzhuo.carnival.restful.security.params.Params Maven / Gradle / Ivy
/*
* ____ _ ____ _ _ _____ ___ _
* / ___| / \ | _ \| \ | |_ _\ \ / / \ | |
* | | / _ \ | |_) | \| || | \ \ / / _ \ | |
* | |___/ ___ \| _ <| |\ || | \ V / ___ \| |___
* \____/_/ \_\_| \_\_| \_|___| \_/_/ \_\_____|
*
* https://github.com/yingzhuo/carnival
*/
package com.github.yingzhuo.carnival.restful.security.params;
/**
* @author 应卓
* @since 1.6.30
*/
public interface Params extends java.io.Serializable {
public String getNonce();
public String getSign();
public Long getTimestamp();
public default boolean isValid() {
return getNonce() != null &&
getSign() != null &&
getTimestamp() != null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy