com.iovation.launchkey.sdk.integration.managers.ServiceTotpManager Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk-integration-tests Show documentation
Show all versions of sdk-integration-tests Show documentation
Integration tests for the LaunchKey Service SDK for Java
package com.iovation.launchkey.sdk.integration.managers;
import com.google.inject.Inject;
import com.google.inject.Singleton;
@Singleton
public class ServiceTotpManager {
private final DirectoryServiceManager directoryServiceManager;
private boolean currentVerifyUserTotpResponse;
@Inject
public ServiceTotpManager(DirectoryServiceManager directoryServiceManager) {
this.directoryServiceManager = directoryServiceManager;
}
public void verifyUserTotpCode(String userId, String totpCode) throws Throwable {
currentVerifyUserTotpResponse = directoryServiceManager.getServiceClient().verifyTotp(userId, totpCode);
}
public Boolean getCurrentVerifyUserTotpResponse() {
return currentVerifyUserTotpResponse;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy