Package com.okta.idx.sdk.api.response
Class IDXResponse
- java.lang.Object
-
- com.okta.idx.sdk.api.response.IDXResponse
-
public class IDXResponse extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description IDXResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IDXResponse
cancel(IDXClient client)
The method to call when you want to cancel the Okta Identity Engine flow.AuthenticatorEnrollments
getAuthenticatorEnrollments()
Authenticators
getAuthenticators()
CurrentAuthenticatorEnrollment
getCurrentAuthenticator()
CurrentAuthenticatorEnrollment
getCurrentAuthenticatorEnrollment()
Messages
getMessages()
java.lang.String
getStateHandle()
SuccessResponse
getSuccessWithInteractionCode()
boolean
isLoginSuccessful()
Check for the status of `successWithInteractionCode` indicating if the login was successful.java.lang.String
raw()
Returns the raw JSON body of the Okta Identity Engine response.Remediation
remediation()
Return the current remediation object.SuccessResponse
successWithInteractionCode()
Return a success response object after `loginSuccess()` returns true.
-
-
-
Method Detail
-
remediation
public Remediation remediation()
Return the current remediation object. MAY be null if there are no further remediation steps necessary- Returns:
- Remediation|null
-
cancel
public IDXResponse cancel(IDXClient client) throws ProcessingException
The method to call when you want to cancel the Okta Identity Engine flow. This will return an IDXResponse- Parameters:
client
- theIDXClient
instance- Returns:
- IDXResponse
- Throws:
ProcessingException
- when the cancel operation encountered an execution/processing error.
-
successWithInteractionCode
public SuccessResponse successWithInteractionCode()
Return a success response object after `loginSuccess()` returns true.- Returns:
- SuccessResponse
-
isLoginSuccessful
public boolean isLoginSuccessful()
Check for the status of `successWithInteractionCode` indicating if the login was successful.- Returns:
- boolean
-
raw
public java.lang.String raw() throws com.fasterxml.jackson.core.JsonProcessingException
Returns the raw JSON body of the Okta Identity Engine response.- Returns:
- String
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
- json processing exception
-
getStateHandle
public java.lang.String getStateHandle()
-
getMessages
public Messages getMessages()
-
getAuthenticatorEnrollments
public AuthenticatorEnrollments getAuthenticatorEnrollments()
-
getAuthenticators
public Authenticators getAuthenticators()
-
getCurrentAuthenticatorEnrollment
public CurrentAuthenticatorEnrollment getCurrentAuthenticatorEnrollment()
-
getCurrentAuthenticator
public CurrentAuthenticatorEnrollment getCurrentAuthenticator()
-
getSuccessWithInteractionCode
public SuccessResponse getSuccessWithInteractionCode()
-
-