Class UserFactorApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> T
activateFactor
(Class<?> T, String userId, String factorId, ActivateFactorRequest body) Activate a Factor The `sms` and `token:software:totp` factor types require activation to complete the enrollment processactivateFactor
(String userId, String factorId, ActivateFactorRequest body) Activate a Factor The `sms` and `token:software:totp` factor types require activation to complete the enrollment processorg.springframework.http.ResponseEntity<UserFactor>
activateFactorWithHttpInfo
(String userId, String factorId, ActivateFactorRequest body) Activate a Factor The `sms` and `token:software:totp` factor types require activation to complete the enrollment processactivateFactorWithPaginationInfo
(String userId, String factorId, ActivateFactorRequest body) Activate a Factor The `sms` and `token:software:totp` factor types require activation to complete the enrollment processvoid
deleteFactor
(String userId, String factorId, Boolean removeEnrollmentRecovery) Delete a Factor Unenrolls an existing factor for the specified user, allowing the user to enroll a new factororg.springframework.http.ResponseEntity<Void>
deleteFactorWithHttpInfo
(String userId, String factorId, Boolean removeEnrollmentRecovery) Delete a Factor Unenrolls an existing factor for the specified user, allowing the user to enroll a new factor<T> T
enrollFactor
(Class<?> T, String userId, UserFactor body, Boolean updatePhone, String templateId, Integer tokenLifetimeSeconds, Boolean activate) Enroll a Factor Enrolls a user with a supported factorenrollFactor
(String userId, UserFactor body, Boolean updatePhone, String templateId, Integer tokenLifetimeSeconds, Boolean activate) Enroll a Factor Enrolls a user with a supported factororg.springframework.http.ResponseEntity<UserFactor>
enrollFactorWithHttpInfo
(String userId, UserFactor body, Boolean updatePhone, String templateId, Integer tokenLifetimeSeconds, Boolean activate) Enroll a Factor Enrolls a user with a supported factorenrollFactorWithPaginationInfo
(String userId, UserFactor body, Boolean updatePhone, String templateId, Integer tokenLifetimeSeconds, Boolean activate) Enroll a Factor Enrolls a user with a supported factorRetrieve a Factor Retrieves a factor for the specified usergetFactorTransactionStatus
(String userId, String factorId, String transactionId) Retrieve a Factor Transaction Status Polls factors verification transaction for statusorg.springframework.http.ResponseEntity<VerifyUserFactorResponse>
getFactorTransactionStatusWithHttpInfo
(String userId, String factorId, String transactionId) Retrieve a Factor Transaction Status Polls factors verification transaction for statusgetFactorTransactionStatusWithPaginationInfo
(String userId, String factorId, String transactionId) Retrieve a Factor Transaction Status Polls factors verification transaction for statusorg.springframework.http.ResponseEntity<UserFactor>
getFactorWithHttpInfo
(String userId, String factorId) Retrieve a Factor Retrieves a factor for the specified usergetFactorWithPaginationInfo
(String userId, String factorId) Retrieve a Factor Retrieves a factor for the specified userlistFactors
(String userId) List all Factors Lists all the enrolled factors for the specified userorg.springframework.http.ResponseEntity<List<UserFactor>>
listFactorsWithHttpInfo
(String userId) List all Factors Lists all the enrolled factors for the specified userlistFactorsWithPaginationInfo
(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 userorg.springframework.http.ResponseEntity<List<UserFactor>>
List all Supported Factors Lists all the supported factors that can be enrolled for the specified userList all Supported Factors Lists all the supported factors that can be enrolled for the specified userlistSupportedSecurityQuestions
(String userId) List all Supported Security Questions Lists all available security questions for a user's `question` factororg.springframework.http.ResponseEntity<List<SecurityQuestion>>
List all Supported Security Questions Lists all available security questions for a user's `question` factorList all Supported Security Questions Lists all available security questions for a user's `question` factorvoid
setApiClient
(ApiClient apiClient) <T> T
verifyFactor
(Class<?> T, String userId, String factorId, String templateId, Integer tokenLifetimeSeconds, String xForwardedFor, String userAgent, String acceptLanguage, VerifyFactorRequest body) Verify an MFA Factor Verifies an OTP for a `token` or `token:hardware` factorverifyFactor
(String userId, String factorId, String templateId, Integer tokenLifetimeSeconds, String xForwardedFor, String userAgent, String acceptLanguage, VerifyFactorRequest body) Verify an MFA Factor Verifies an OTP for a `token` or `token:hardware` factororg.springframework.http.ResponseEntity<VerifyUserFactorResponse>
verifyFactorWithHttpInfo
(String userId, String factorId, String templateId, Integer tokenLifetimeSeconds, String xForwardedFor, String userAgent, String acceptLanguage, VerifyFactorRequest body) Verify an MFA Factor Verifies an OTP for a `token` or `token:hardware` factorverifyFactorWithPaginationInfo
(String userId, String factorId, String templateId, Integer tokenLifetimeSeconds, String xForwardedFor, String userAgent, String acceptLanguage, VerifyFactorRequest body) Verify an MFA Factor Verifies an OTP for a `token` or `token:hardware` factor
-
Constructor Details
-
UserFactorApi
public UserFactorApi() -
UserFactorApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
activateFactor
public UserFactor activateFactor(String userId, String factorId, ActivateFactorRequest body) throws org.springframework.web.client.RestClientException Activate a Factor The `sms` and `token:software:totp` factor types require activation to complete the enrollment process200 - Success
400 - Bad Request
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
userId
- (required)factorId
- (required)body
- (optional)- Returns:
- UserFactor
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-
activateFactor
public <T> T activateFactor(Class<?> T, String userId, String factorId, ActivateFactorRequest body) throws org.springframework.web.client.RestClientException Activate a Factor The `sms` and `token:software:totp` factor types require activation to complete the enrollment process200 - Success
400 - Bad Request
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
T
- (required) - the assignable return typeuserId
- (required)factorId
- (required)body
- (optional)- Returns:
- T instance
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-
activateFactorWithHttpInfo
public org.springframework.http.ResponseEntity<UserFactor> activateFactorWithHttpInfo(String userId, String factorId, ActivateFactorRequest body) throws org.springframework.web.client.RestClientException Activate a Factor The `sms` and `token:software:totp` factor types require activation to complete the enrollment process200 - Success
400 - Bad Request
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
userId
- (required)factorId
- (required)body
- (optional)- Returns:
- ResponseEntity<UserFactor>
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-
activateFactorWithPaginationInfo
public PagedList activateFactorWithPaginationInfo(String userId, String factorId, ActivateFactorRequest body) throws org.springframework.web.client.RestClientException Activate a Factor The `sms` and `token:software:totp` factor types require activation to complete the enrollment process200 - Success
400 - Bad Request
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
userId
- (required)factorId
- (required)body
- (optional)- Returns:
- ResponseEntity<UserFactor>
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-
deleteFactor
public void deleteFactor(String userId, String factorId, Boolean removeEnrollmentRecovery) throws org.springframework.web.client.RestClientException Delete a Factor Unenrolls an existing factor for the specified user, allowing the user to enroll a new factor204 - No Content
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
userId
- (required)factorId
- (required)removeEnrollmentRecovery
- (optional, default to false)- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-
deleteFactorWithHttpInfo
public org.springframework.http.ResponseEntity<Void> deleteFactorWithHttpInfo(String userId, String factorId, Boolean removeEnrollmentRecovery) throws org.springframework.web.client.RestClientException Delete a Factor Unenrolls an existing factor for the specified user, allowing the user to enroll a new factor204 - No Content
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
userId
- (required)factorId
- (required)removeEnrollmentRecovery
- (optional, default to false)- Returns:
- ResponseEntity<Void>
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-
enrollFactor
public UserFactor enrollFactor(String userId, UserFactor body, Boolean updatePhone, String templateId, Integer tokenLifetimeSeconds, Boolean activate) throws org.springframework.web.client.RestClientException Enroll a Factor Enrolls a user with a supported factor200 - Success
400 - Bad Request
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
userId
- (required)body
- Factor (required)updatePhone
- (optional, default to false)templateId
- id of SMS template (only for SMS factor) (optional)tokenLifetimeSeconds
- (optional, default to 300)activate
- (optional, default to false)- Returns:
- UserFactor
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-
enrollFactor
public <T> T enrollFactor(Class<?> T, String userId, UserFactor body, Boolean updatePhone, String templateId, Integer tokenLifetimeSeconds, Boolean activate) throws org.springframework.web.client.RestClientException Enroll a Factor Enrolls a user with a supported factor200 - Success
400 - Bad Request
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
T
- (required) - the assignable return typeuserId
- (required)body
- Factor (required)updatePhone
- (optional, default to false)templateId
- id of SMS template (only for SMS factor) (optional)tokenLifetimeSeconds
- (optional, default to 300)activate
- (optional, default to false)- Returns:
- T instance
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-
enrollFactorWithHttpInfo
public org.springframework.http.ResponseEntity<UserFactor> enrollFactorWithHttpInfo(String userId, UserFactor body, Boolean updatePhone, String templateId, Integer tokenLifetimeSeconds, Boolean activate) throws org.springframework.web.client.RestClientException Enroll a Factor Enrolls a user with a supported factor200 - Success
400 - Bad Request
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
userId
- (required)body
- Factor (required)updatePhone
- (optional, default to false)templateId
- id of SMS template (only for SMS factor) (optional)tokenLifetimeSeconds
- (optional, default to 300)activate
- (optional, default to false)- Returns:
- ResponseEntity<UserFactor>
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-
enrollFactorWithPaginationInfo
public PagedList enrollFactorWithPaginationInfo(String userId, UserFactor body, Boolean updatePhone, String templateId, Integer tokenLifetimeSeconds, Boolean activate) throws org.springframework.web.client.RestClientException Enroll a Factor Enrolls a user with a supported factor200 - Success
400 - Bad Request
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
userId
- (required)body
- Factor (required)updatePhone
- (optional, default to false)templateId
- id of SMS template (only for SMS factor) (optional)tokenLifetimeSeconds
- (optional, default to 300)activate
- (optional, default to false)- Returns:
- ResponseEntity<UserFactor>
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-
getFactor
public UserFactor getFactor(String userId, String factorId) throws org.springframework.web.client.RestClientException Retrieve a Factor Retrieves a factor for the specified user200 - Success
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
userId
- (required)factorId
- (required)- Returns:
- UserFactor
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-
getFactorWithHttpInfo
public org.springframework.http.ResponseEntity<UserFactor> getFactorWithHttpInfo(String userId, String factorId) throws org.springframework.web.client.RestClientException Retrieve a Factor Retrieves a factor for the specified user200 - Success
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
userId
- (required)factorId
- (required)- Returns:
- ResponseEntity<UserFactor>
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-
getFactorWithPaginationInfo
public PagedList getFactorWithPaginationInfo(String userId, String factorId) throws org.springframework.web.client.RestClientException Retrieve a Factor Retrieves a factor for the specified user200 - Success
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
userId
- (required)factorId
- (required)- Returns:
- ResponseEntity<UserFactor>
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-
getFactorTransactionStatus
public VerifyUserFactorResponse getFactorTransactionStatus(String userId, String factorId, String transactionId) throws org.springframework.web.client.RestClientException Retrieve a Factor Transaction Status Polls factors verification transaction for status200 - Success
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
userId
- (required)factorId
- (required)transactionId
- (required)- Returns:
- VerifyUserFactorResponse
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-
getFactorTransactionStatusWithHttpInfo
public org.springframework.http.ResponseEntity<VerifyUserFactorResponse> getFactorTransactionStatusWithHttpInfo(String userId, String factorId, String transactionId) throws org.springframework.web.client.RestClientException Retrieve a Factor Transaction Status Polls factors verification transaction for status200 - Success
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
userId
- (required)factorId
- (required)transactionId
- (required)- Returns:
- ResponseEntity<VerifyUserFactorResponse>
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-
getFactorTransactionStatusWithPaginationInfo
public PagedList getFactorTransactionStatusWithPaginationInfo(String userId, String factorId, String transactionId) throws org.springframework.web.client.RestClientException Retrieve a Factor Transaction Status Polls factors verification transaction for status200 - Success
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
userId
- (required)factorId
- (required)transactionId
- (required)- Returns:
- ResponseEntity<VerifyUserFactorResponse>
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-
listFactors
public List<UserFactor> listFactors(String userId) throws org.springframework.web.client.RestClientException List all Factors Lists all the enrolled factors for the specified user200 - Success
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
userId
- (required)- Returns:
- List<UserFactor>
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-
listFactorsWithHttpInfo
public org.springframework.http.ResponseEntity<List<UserFactor>> listFactorsWithHttpInfo(String userId) throws org.springframework.web.client.RestClientException List all Factors Lists all the enrolled factors for the specified user200 - Success
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
userId
- (required)- Returns:
- ResponseEntity<List<UserFactor>>
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-
listFactorsWithPaginationInfo
public PagedList listFactorsWithPaginationInfo(String userId) throws org.springframework.web.client.RestClientException List all Factors Lists all the enrolled factors for the specified user200 - Success
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
userId
- (required)- Returns:
- ResponseEntity<List<UserFactor>>
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-
listSupportedFactors
public List<UserFactor> listSupportedFactors(String userId) throws org.springframework.web.client.RestClientException List all Supported Factors Lists all the supported factors that can be enrolled for the specified user200 - Success
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
userId
- (required)- Returns:
- List<UserFactor>
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-
listSupportedFactorsWithHttpInfo
public org.springframework.http.ResponseEntity<List<UserFactor>> listSupportedFactorsWithHttpInfo(String userId) throws org.springframework.web.client.RestClientException List all Supported Factors Lists all the supported factors that can be enrolled for the specified user200 - Success
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
userId
- (required)- Returns:
- ResponseEntity<List<UserFactor>>
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-
listSupportedFactorsWithPaginationInfo
public PagedList listSupportedFactorsWithPaginationInfo(String userId) throws org.springframework.web.client.RestClientException List all Supported Factors Lists all the supported factors that can be enrolled for the specified user200 - Success
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
userId
- (required)- Returns:
- ResponseEntity<List<UserFactor>>
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-
listSupportedSecurityQuestions
public List<SecurityQuestion> listSupportedSecurityQuestions(String userId) throws org.springframework.web.client.RestClientException List all Supported Security Questions Lists all available security questions for a user's `question` factor200 - Success
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
userId
- (required)- Returns:
- List<SecurityQuestion>
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-
listSupportedSecurityQuestionsWithHttpInfo
public org.springframework.http.ResponseEntity<List<SecurityQuestion>> listSupportedSecurityQuestionsWithHttpInfo(String userId) throws org.springframework.web.client.RestClientException List all Supported Security Questions Lists all available security questions for a user's `question` factor200 - Success
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
userId
- (required)- Returns:
- ResponseEntity<List<SecurityQuestion>>
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-
listSupportedSecurityQuestionsWithPaginationInfo
public PagedList listSupportedSecurityQuestionsWithPaginationInfo(String userId) throws org.springframework.web.client.RestClientException List all Supported Security Questions Lists all available security questions for a user's `question` factor200 - Success
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
userId
- (required)- Returns:
- ResponseEntity<List<SecurityQuestion>>
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-
verifyFactor
public VerifyUserFactorResponse verifyFactor(String userId, String factorId, String templateId, Integer tokenLifetimeSeconds, String xForwardedFor, String userAgent, String acceptLanguage, VerifyFactorRequest body) throws org.springframework.web.client.RestClientException Verify an MFA Factor Verifies an OTP for a `token` or `token:hardware` factor200 - Success
400 - Bad Request
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
userId
- (required)factorId
- (required)templateId
- (optional)tokenLifetimeSeconds
- (optional, default to 300)xForwardedFor
- (optional)userAgent
- (optional)acceptLanguage
- (optional)body
- (optional)- Returns:
- VerifyUserFactorResponse
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-
verifyFactor
public <T> T verifyFactor(Class<?> T, String userId, String factorId, String templateId, Integer tokenLifetimeSeconds, String xForwardedFor, String userAgent, String acceptLanguage, VerifyFactorRequest body) throws org.springframework.web.client.RestClientException Verify an MFA Factor Verifies an OTP for a `token` or `token:hardware` factor200 - Success
400 - Bad Request
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
T
- (required) - the assignable return typeuserId
- (required)factorId
- (required)templateId
- (optional)tokenLifetimeSeconds
- (optional, default to 300)xForwardedFor
- (optional)userAgent
- (optional)acceptLanguage
- (optional)body
- (optional)- Returns:
- T instance
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-
verifyFactorWithHttpInfo
public org.springframework.http.ResponseEntity<VerifyUserFactorResponse> verifyFactorWithHttpInfo(String userId, String factorId, String templateId, Integer tokenLifetimeSeconds, String xForwardedFor, String userAgent, String acceptLanguage, VerifyFactorRequest body) throws org.springframework.web.client.RestClientException Verify an MFA Factor Verifies an OTP for a `token` or `token:hardware` factor200 - Success
400 - Bad Request
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
userId
- (required)factorId
- (required)templateId
- (optional)tokenLifetimeSeconds
- (optional, default to 300)xForwardedFor
- (optional)userAgent
- (optional)acceptLanguage
- (optional)body
- (optional)- Returns:
- ResponseEntity<VerifyUserFactorResponse>
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-
verifyFactorWithPaginationInfo
public PagedList verifyFactorWithPaginationInfo(String userId, String factorId, String templateId, Integer tokenLifetimeSeconds, String xForwardedFor, String userAgent, String acceptLanguage, VerifyFactorRequest body) throws org.springframework.web.client.RestClientException Verify an MFA Factor Verifies an OTP for a `token` or `token:hardware` factor200 - Success
400 - Bad Request
403 - Forbidden
404 - Not Found
429 - Too Many Requests
- Parameters:
userId
- (required)factorId
- (required)templateId
- (optional)tokenLifetimeSeconds
- (optional, default to 300)xForwardedFor
- (optional)userAgent
- (optional)acceptLanguage
- (optional)body
- (optional)- Returns:
- ResponseEntity<VerifyUserFactorResponse>
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-