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

net.facelib.mtfsdk.V2AupsParameterProvider Maven / Gradle / Ivy

There is a newer version: 4.2.1
Show newest version
package net.facelib.mtfsdk;

import net.facelib.akcore.AupsParameterProvider;
import net.facelib.akcore.AuthParameter;

import static net.facelib.mtfsdk.V2AndroidBridge.V2_PRODUCT_ID;
/**
 * V2版产品签名授权方式[AUPS]用户参数接口抽象类
* 用户需要实现{@link AupsParameterProvider#getAuthorID()}, * {@link AupsParameterProvider#getProductSign()}方法提供用户ID和产品签名 * @author guyadong * */ public abstract class V2AupsParameterProvider extends AupsParameterProvider { public V2AupsParameterProvider() { String tmpdir = System.getProperty("java.io.tmpdir"); if(tmpdir != null){ // 默认授权文件位置 String path = String.format("%s/%s_%s.dat", tmpdir, getAuthorID(), getProductID()); setValue(AuthParameter.LICENSE_FILE, path); } } @Override public final String getProductID() { return V2_PRODUCT_ID; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy