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

com.eshore.uas.auth.IAuth Maven / Gradle / Ivy

There is a newer version: 2.0.3
Show newest version
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);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy