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

io.mosip.mock.sdk.service.SDKInfoService Maven / Gradle / Ivy

There is a newer version: 1.3.0-beta.1
Show newest version
package io.mosip.mock.sdk.service;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.core.env.Environment;

import io.mosip.kernel.biometrics.constant.BiometricFunction;
import io.mosip.kernel.biometrics.constant.BiometricType;
import io.mosip.kernel.biometrics.model.SDKInfo;

public class SDKInfoService extends SDKService {
	private Logger LOGGER = LoggerFactory.getLogger(SDKInfoService.class);

	private String apiVersion;
	private String sample1, sample2, sample3;

	public SDKInfoService(Environment env, String apiVersion, String sample1, String sample2, String sample3) {
		super(env, null);
		this.apiVersion = apiVersion;
		this.sample1 = sample1;
		this.sample2 = sample2;
		this.sample3 = sample3;
	}

	public SDKInfo getSDKInfo() {
		SDKInfo sdkInfo = new SDKInfo(this.apiVersion, this.sample1, this.sample2, this.sample3);
		List supportedModalities = new ArrayList<>();
		supportedModalities.add(BiometricType.FINGER);
		supportedModalities.add(BiometricType.FACE);
		supportedModalities.add(BiometricType.IRIS);
		sdkInfo.setSupportedModalities(supportedModalities);
		Map> supportedMethods = new HashMap<>();
		supportedMethods.put(BiometricFunction.MATCH, supportedModalities);
		supportedMethods.put(BiometricFunction.QUALITY_CHECK, supportedModalities);
		supportedMethods.put(BiometricFunction.EXTRACT, supportedModalities);
		supportedMethods.put(BiometricFunction.CONVERT_FORMAT, supportedModalities);
		sdkInfo.setSupportedMethods(supportedMethods);
		return sdkInfo;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy