io.mosip.kernel.biometrics.model.SDKInfo Maven / Gradle / Ivy
package io.mosip.kernel.biometrics.model;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import io.mosip.kernel.biometrics.constant.BiometricFunction;
import io.mosip.kernel.biometrics.constant.BiometricType;
import io.mosip.kernel.biometrics.entities.RegistryIDType;
import lombok.Data;
@Data
public class SDKInfo {
private String apiVersion;
private String sdkVersion;
private List supportedModalities;
private Map> supportedMethods;
/**
* eg: license expire details
*/
private Map otherInfo;
private RegistryIDType productOwner;
public SDKInfo(String apiVersion, String sdkVersion, String organization, String type) {
this.apiVersion = apiVersion;
this.sdkVersion = sdkVersion;
this.productOwner = new RegistryIDType(organization, type);
this.supportedModalities = new ArrayList<>();
this.supportedMethods = new HashMap<>();
this.otherInfo = new HashMap<>();
}
public SDKInfo withSupportedMethod(BiometricFunction function, BiometricType biometricType) {
if(!this.supportedMethods.containsKey(function))
this.supportedMethods.put(function, new ArrayList<>());
this.supportedMethods.get(function).add(biometricType);
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy