public abstract class Request<T extends Request<T>>
extends java.lang.Object
implements android.os.Parcelable
| Modifier | Constructor and Description |
|---|---|
protected |
Request() |
protected |
Request(android.os.Parcel source) |
| Modifier and Type | Method and Description |
|---|---|
T |
cancelUrl(java.lang.String scheme,
java.lang.String host)
Defines the host to be used in the cancellation url for browser switch (the package name will
be used as the scheme)
|
T |
clientId(java.lang.String clientId) |
T |
clientMetadataId(java.lang.String clientMetadataId) |
int |
describeContents() |
T |
environment(java.lang.String environment) |
abstract Recipe |
getBrowserSwitchRecipe(OtcConfiguration config) |
abstract java.lang.String |
getBrowserSwitchUrl(android.content.Context context,
OtcConfiguration config) |
java.lang.String |
getCancelUrl() |
java.lang.String |
getClientId() |
java.lang.String |
getClientMetadataId() |
java.lang.String |
getEnvironment() |
abstract Recipe |
getRecipeToExecute(android.content.Context context,
OtcConfiguration config) |
java.lang.String |
getSuccessUrl() |
abstract Result |
parseBrowserResponse(ContextInspector contextInspector,
android.net.Uri uri) |
T |
successUrl(java.lang.String scheme,
java.lang.String host)
Defines the host to be used in the success url for browser switch (the package name will be
used as the scheme)
|
abstract void |
trackFpti(android.content.Context context,
TrackingPoint trackingPoint,
Protocol protocol) |
abstract boolean |
validateV1V2Response(ContextInspector contextInspector,
android.os.Bundle extras) |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public T environment(java.lang.String environment)
public java.lang.String getEnvironment()
public T clientMetadataId(java.lang.String clientMetadataId)
public java.lang.String getClientMetadataId()
public T clientId(java.lang.String clientId)
public java.lang.String getClientId()
public T cancelUrl(java.lang.String scheme, java.lang.String host)
public java.lang.String getCancelUrl()
public T successUrl(java.lang.String scheme, java.lang.String host)
public java.lang.String getSuccessUrl()
public abstract java.lang.String getBrowserSwitchUrl(android.content.Context context,
OtcConfiguration config)
throws java.security.cert.CertificateException,
java.io.UnsupportedEncodingException,
javax.crypto.NoSuchPaddingException,
java.security.NoSuchAlgorithmException,
javax.crypto.IllegalBlockSizeException,
org.json.JSONException,
javax.crypto.BadPaddingException,
InvalidEncryptionDataException,
java.security.InvalidKeyException
java.security.cert.CertificateExceptionjava.io.UnsupportedEncodingExceptionjavax.crypto.NoSuchPaddingExceptionjava.security.NoSuchAlgorithmExceptionjavax.crypto.IllegalBlockSizeExceptionorg.json.JSONExceptionjavax.crypto.BadPaddingExceptionInvalidEncryptionDataExceptionjava.security.InvalidKeyExceptionpublic abstract Recipe getBrowserSwitchRecipe(OtcConfiguration config)
public abstract Result parseBrowserResponse(ContextInspector contextInspector, android.net.Uri uri)
public abstract boolean validateV1V2Response(ContextInspector contextInspector, android.os.Bundle extras)
public abstract Recipe getRecipeToExecute(android.content.Context context, OtcConfiguration config)
public abstract void trackFpti(android.content.Context context,
TrackingPoint trackingPoint,
Protocol protocol)
public int describeContents()
describeContents in interface android.os.Parcelablepublic void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel in interface android.os.Parcelable