public class OppThreeDSTransaction
extends java.lang.Object
Use OppThreeDSService.createTransaction(String, String)
to create a new transaction instance.
Modifier and Type | Method and Description |
---|---|
void |
close()
Cleans up resources that are held by the transaction object.
|
void |
doChallenge(android.app.Activity activity,
java.lang.String authResponse,
ChallengeCallback callback)
Validates
authResponse and launches the challenge screens. |
java.lang.String |
getAuthRequestParams()
Constructs authentication request parameters string to be sent to the Platform.
|
android.app.ProgressDialog |
getProgressView(android.app.Activity activity)
Returns the processing screen which displays the Directory Server logo,
and a graphical element to indicate that an activity is being processed.
|
public java.lang.String getAuthRequestParams() throws SDKRuntimeException
SDKRuntimeException
- if some internal error occurredpublic void doChallenge(android.app.Activity activity, java.lang.String authResponse, ChallengeCallback callback) throws InvalidInputException, SDKRuntimeException
authResponse
and launches the challenge screens. Make sure you call method
on UI thread.
Wait for challenge completion events in the listener
object.
activity
- the activity to start challenge activity on top of itauthResponse
- the json string with authentication response as received from the Platformcallback
- the object to receive challenge result eventsInvalidInputException
- if invalid auth response is providedSDKRuntimeException
- if some internal error occurredpublic android.app.ProgressDialog getProgressView(android.app.Activity activity) throws InvalidInputException, SDKRuntimeException
activity
- the activity to show progress view on top of itProgressDialog
object to be shown while transaction is processingInvalidInputException
- if activity is not validSDKRuntimeException
- if some internal error occurredpublic void close()
Note: This method is required to be called only when the doChallenge method is not called in the transaction. E.g. you want to cancel transaction instead of requesting challenge authentication.