com.eshore.uas.auth.IAuth Maven / Gradle / Ivy
package com.eshore.uas.auth;
/**
* Oauth 实现
* @author eshore
*
*/
public interface IAuth {
/**
* 验证接口
* @param app_id appid
* @param app_secret secret
* @param sign sign
* @param timestamp time
* @param key key
* @return result
*/
boolean auth(String app_id,String app_secret,String sign,String timestamp,String key);
String hash(String key);
String getAppId(String key);
String genToken(String hash,String app_id);
boolean checkToken(String hash,String key);
}