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

com.metaring.framework.auth.AuthFunctionalitiesManager Maven / Gradle / Ivy

package com.metaring.framework.auth;

import com.metaring.framework.functionality.FunctionalityInfo;
import com.metaring.framework.functionality.FunctionalitiesManager;
import com.metaring.framework.functionality.GeneratedFunctionalitiesManager;
import com.metaring.framework.functionality.Functionality;
import java.util.concurrent.CompletableFuture;
import com.metaring.framework.auth.PreliminaryEnableData;
import java.lang.Boolean;
import com.metaring.framework.type.DataRepresentation;

public class AuthFunctionalitiesManager extends FunctionalitiesManager implements GeneratedFunctionalitiesManager {

    public static final FunctionalityInfo VERIFY_ENABLE = VerifyEnableFunctionality.INFO;

    public static final FunctionalityInfo VERIFY_IDENTIFICATION = VerifyIdentificationFunctionality.INFO;

    public static final CompletableFuture verifyEnable(PreliminaryEnableData preliminaryEnableData) {
        return call(VERIFY_ENABLE, VerifyEnableFunctionality.class, getCallingFunctionality(), preliminaryEnableData, result -> result.asTruth());
    }

    public static final CompletableFuture verifyEnable(Functionality functionality, PreliminaryEnableData preliminaryEnableData) {
        return call(VERIFY_ENABLE, VerifyEnableFunctionality.class, functionality, preliminaryEnableData, result -> result.asTruth());
    }

    public static final CompletableFuture verifyEnableFromJson(String preliminaryEnableDataJson) {
        return callFromJson(VERIFY_ENABLE, VerifyEnableFunctionality.class, getCallingFunctionality(), preliminaryEnableDataJson, result -> result.asTruth());
    }

    public static final CompletableFuture verifyEnableFromJson(Functionality callingFunctionality, String preliminaryEnableDataJson) {
        return callFromJson(VERIFY_ENABLE, VerifyEnableFunctionality.class, callingFunctionality, preliminaryEnableDataJson, result -> result.asTruth());
    }

    public static final CompletableFuture verifyIdentification(DataRepresentation dataRepresentation) {
        return call(VERIFY_IDENTIFICATION, VerifyIdentificationFunctionality.class, getCallingFunctionality(), dataRepresentation, result -> result.asTruth());
    }

    public static final CompletableFuture verifyIdentification(Functionality functionality, DataRepresentation dataRepresentation) {
        return call(VERIFY_IDENTIFICATION, VerifyIdentificationFunctionality.class, functionality, dataRepresentation, result -> result.asTruth());
    }

    public static final CompletableFuture verifyIdentificationFromJson(String dataRepresentationJson) {
        return callFromJson(VERIFY_IDENTIFICATION, VerifyIdentificationFunctionality.class, getCallingFunctionality(), dataRepresentationJson, result -> result.asTruth());
    }

    public static final CompletableFuture verifyIdentificationFromJson(Functionality callingFunctionality, String dataRepresentationJson) {
        return callFromJson(VERIFY_IDENTIFICATION, VerifyIdentificationFunctionality.class, callingFunctionality, dataRepresentationJson, result -> result.asTruth());
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy