Package com.okta.sdk.helper
Class UserFactorApiHelper<T extends UserFactor>
java.lang.Object
com.okta.sdk.resource.api.UserFactorApi
com.okta.sdk.helper.UserFactorApiHelper<T>
Helper class that enables working with sub-typed
UserFactor
references.-
Constructor Summary
ConstructorDescriptionUserFactorApiHelper
(UserFactorApi userFactorApi) UserFactorApiHelper
(ApiClient apiClient) -
Method Summary
Modifier and TypeMethodDescription<T extends UserFactor>
TactivateFactorOfType
(Class<T> classType, String userId, String factorId, ActivateFactorRequest activateFactorRequest) <T extends UserFactor>
TenrollFactorOfType
(Class<T> classType, String userId, UserFactor userFactor, Boolean updatePhone, String templateId, Integer tokenLifetimeSeconds, Boolean activate) <T extends UserFactor>
TresendEnrollFactorOfType
(Class<T> classType, String userId, String factorId, UserFactor userFactor, String templateId) Methods inherited from class com.okta.sdk.resource.api.UserFactorApi
activateFactor, activateFactor, enrollFactor, enrollFactor, getApiClient, getFactor, getFactor, getFactorTransactionStatus, getFactorTransactionStatus, getObjectMapper, listFactors, listFactors, listSupportedFactors, listSupportedFactors, listSupportedSecurityQuestions, listSupportedSecurityQuestions, resendEnrollFactor, resendEnrollFactor, setApiClient, unenrollFactor, unenrollFactor, verifyFactor, verifyFactor
-
Constructor Details
-
UserFactorApiHelper
-
UserFactorApiHelper
-
-
Method Details
-
activateFactorOfType
public <T extends UserFactor> T activateFactorOfType(Class<T> classType, String userId, String factorId, ActivateFactorRequest activateFactorRequest) throws ApiException - Throws:
ApiException
-
enrollFactorOfType
public <T extends UserFactor> T enrollFactorOfType(Class<T> classType, String userId, UserFactor userFactor, Boolean updatePhone, String templateId, Integer tokenLifetimeSeconds, Boolean activate) throws ApiException - Throws:
ApiException
-
resendEnrollFactorOfType
public <T extends UserFactor> T resendEnrollFactorOfType(Class<T> classType, String userId, String factorId, UserFactor userFactor, String templateId) throws ApiException - Throws:
ApiException
-