Package com.okta.sdk.helper
Class UserFactorApiHelper<T extends UserFactor>
java.lang.Object
org.openapitools.client.api.UserFactorApi
com.okta.sdk.helper.UserFactorApiHelper<T>
Helper class that enables working with sub-typed
UserFactor
references.-
Constructor Summary
ConstructorsConstructorDescriptionUserFactorApiHelper
(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) Retrieve a Factor Retrieves a factor for the specified userlistFactors
(String userId) List all Factors Lists all the enrolled factors for the specified userlistSupportedFactors
(String userId) List all Supported Factors Lists all the supported factors that can be enrolled for the specified user<T extends UserFactor>
TresendEnrollFactorOfType
(Class<T> classType, String userId, String factorId, UserFactor userFactor, String templateId) Methods inherited from class org.openapitools.client.api.UserFactorApi
activateFactor, activateFactor, enrollFactor, enrollFactor, getApiClient, getFactor, getFactorTransactionStatus, getFactorTransactionStatus, getObjectMapper, listFactors, 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
-
getFactor
Description copied from class:UserFactorApi
Retrieve a Factor Retrieves a factor for the specified user- Overrides:
getFactor
in classUserFactorApi
- Parameters:
userId
- (required)factorId
- `id` of the Factor (required)- Returns:
- UserFactor
- Throws:
ApiException
- if fails to make API call
-
listFactors
Description copied from class:UserFactorApi
List all Factors Lists all the enrolled factors for the specified user- Overrides:
listFactors
in classUserFactorApi
- Parameters:
userId
- (required)- Returns:
- List<UserFactor>
- Throws:
ApiException
- if fails to make API call
-
listSupportedFactors
Description copied from class:UserFactorApi
List all Supported Factors Lists all the supported factors that can be enrolled for the specified user- Overrides:
listSupportedFactors
in classUserFactorApi
- Parameters:
userId
- (required)- Returns:
- List<UserFactor>
- Throws:
ApiException
- if fails to make API call
-
resendEnrollFactorOfType
public <T extends UserFactor> T resendEnrollFactorOfType(Class<T> classType, String userId, String factorId, UserFactor userFactor, String templateId) throws ApiException - Throws:
ApiException
-