-
- All Implemented Interfaces:
-
android.os.Parcelable
public class ThreeDS2Info implements Parcelable
Class to represent 3-D Secure 2 parameters.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enum
ThreeDS2Info.AuthStatus
Enumeration of possible statuses for 3-D Secure authentication.
public enum
ThreeDS2Info.ThreeDSFlow
Enumeration of possible 3-D Secure flows.
-
Field Summary
Fields Modifier and Type Field Description private final ThreeDS2Info.AuthStatus
authStatus
private final String
authResponse
private String
cardHolderInfo
private String
brand
private String
protocolVersion
private String
callbackUrl
private String
challengeCompletionCallbackUrl
private String
dsRefId
private String
dsCert
private String
dsRootCa
private ThreeDS2Info.ThreeDSFlow
threeDSFlow
public final static Parcelable.Creator<ThreeDS2Info>
CREATOR
-
Constructor Summary
Constructors Constructor Description ThreeDS2Info(ThreeDS2Info.AuthStatus authStatus, String authResponse)
Creates object with 3-D Secure parameters. ThreeDS2Info(Parcel in)
-
Method Summary
Modifier and Type Method Description ThreeDS2Info.AuthStatus
getAuthStatus()
Returns status of 3-D Secure authentication. String
getAuthResponse()
Returns authentication response as JSON string required for launching in-app challenge screens. String
getCardHolderInfo()
Returns contents of the cardHolderInfo required for decoupled transactions. void
setCardHolderInfo(@Nullable() String cardHolderInfo)
Sets contents of the cardHolderInfo required for decoupled transactions. String
getBrand()
Returns the card brand. void
setBrand(@Nullable() String brand)
Sets the card brand. String
getProtocolVersion()
Returns the protocol version of 3-D secure 2. void
setProtocolVersion(@Nullable() String protocolVersion)
Sets the protocol version of 3-D secure 2. String
getCallbackUrl()
Returns the callback URL string to send the params needed for 3-D Secure 2 authentication request. void
setCallbackUrl(@Nullable() String callbackUrl)
Sets the callback URL string to send the params needed for 3-D Secure 2 authentication request. String
getChallengeCompletionCallbackUrl()
Returns the challenge completion callback URL. void
setChallengeCompletionCallbackUrl(@Nullable() String challengeCompletionCallbackUrl)
Sets the challenge completion callback URL. String
getDsRefId()
Returns the directory server reference id. void
setDsRefId(@Nullable() String dsRefId)
Sets the directory server reference id. String
getDsCert()
Returns the encryption certificate provided by the Directory Server. void
setDsCert(@Nullable() String dsCert)
Sets the encryption certificate provided by the Directory Server. String
getDsRootCa()
Returns the root CA certificate used to issue the DS_CERT. void
setDsRootCa(@Nullable() String dsRootCa)
Sets the root CA certificate used to issue the DS_CERT. ThreeDS2Info.ThreeDSFlow
getThreeDSFlow()
Returns the 3-D secure 2 flow. void
setThreeDSFlow(@Nullable() ThreeDS2Info.ThreeDSFlow threeDSFlow)
Sets the 3-D secure 2 flow. String
requireAuthResponse()
String
requireDsRefId()
String
requireDsCert()
String
requireDsRootCa()
String
requireProtocolVersion()
ThreeDS2Info.ThreeDSFlow
requireThreeDSFlow()
String
requireCallbackUrl()
boolean
isChallengeRequired()
Returns true
if in-app challenge is required, otherwisefalse
.boolean
isAuthParamsRequired()
Returns true
if auth params are required, otherwisefalse
.int
describeContents()
void
writeToParcel(Parcel parcel, int flags)
boolean
equals(Object o)
int
hashCode()
-
-
Constructor Detail
-
ThreeDS2Info
ThreeDS2Info(ThreeDS2Info.AuthStatus authStatus, String authResponse)
Creates object with 3-D Secure parameters.- Parameters:
authStatus
- The status of 3-D Secure authentication.authResponse
- The authentication response as JSON string.
-
ThreeDS2Info
ThreeDS2Info(Parcel in)
-
-
Method Detail
-
getAuthStatus
@Nullable() ThreeDS2Info.AuthStatus getAuthStatus()
Returns status of 3-D Secure authentication.
-
getAuthResponse
@Nullable() String getAuthResponse()
Returns authentication response as JSON string required for launching in-app challenge screens.
-
getCardHolderInfo
@Nullable() String getCardHolderInfo()
Returns contents of the cardHolderInfo required for decoupled transactions.
-
setCardHolderInfo
void setCardHolderInfo(@Nullable() String cardHolderInfo)
Sets contents of the cardHolderInfo required for decoupled transactions.
- Parameters:
cardHolderInfo
- The content of cardHolderInfo required for decoupled transactions.
-
setBrand
void setBrand(@Nullable() String brand)
Sets the card brand.
- Parameters:
brand
- The card brand.
-
getProtocolVersion
@Nullable() String getProtocolVersion()
Returns the protocol version of 3-D secure 2.
-
setProtocolVersion
void setProtocolVersion(@Nullable() String protocolVersion)
Sets the protocol version of 3-D secure 2.
- Parameters:
protocolVersion
- The protocol version.
-
getCallbackUrl
@Nullable() String getCallbackUrl()
Returns the callback URL string to send the params needed for 3-D Secure 2 authentication request.
-
setCallbackUrl
void setCallbackUrl(@Nullable() String callbackUrl)
Sets the callback URL string to send the params needed for 3-D Secure 2 authentication request.
- Parameters:
callbackUrl
- The callback URL.
-
getChallengeCompletionCallbackUrl
@Nullable() String getChallengeCompletionCallbackUrl()
Returns the challenge completion callback URL.
-
setChallengeCompletionCallbackUrl
void setChallengeCompletionCallbackUrl(@Nullable() String challengeCompletionCallbackUrl)
Sets the challenge completion callback URL.
- Parameters:
challengeCompletionCallbackUrl
- The challenge completion callback URL.
-
getDsRefId
@Nullable() String getDsRefId()
Returns the directory server reference id. An identifier used internally to match the transaction with a particular Directory Server.
-
setDsRefId
void setDsRefId(@Nullable() String dsRefId)
Sets the directory server reference id. An identifier used internally to match the transaction with a particular Directory Server.
- Parameters:
dsRefId
- The directory server reference id.
-
getDsCert
@Nullable() String getDsCert()
Returns the encryption certificate provided by the Directory Server. Used to encrypt the DeviceInfo and generate keys to use for Challenge security.
-
setDsCert
void setDsCert(@Nullable() String dsCert)
Sets the encryption certificate provided by the Directory Server. Used to encrypt the DeviceInfo and generate keys to use for Challenge security.
- Parameters:
dsCert
- The encryption certificate.
-
getDsRootCa
@Nullable() String getDsRootCa()
Returns the root CA certificate used to issue the DS_CERT. This is used to verify the signature on the response from the Directory Server (ARes packet), and can include the intermediate certificate as well.
-
setDsRootCa
void setDsRootCa(@Nullable() String dsRootCa)
Sets the root CA certificate used to issue the DS_CERT. This is used to verify the signature on the response from the Directory Server (ARes packet), and can include the intermediate certificate as well.
- Parameters:
dsRootCa
- The root CA certificate.
-
getThreeDSFlow
@Nullable() ThreeDS2Info.ThreeDSFlow getThreeDSFlow()
Returns the 3-D secure 2 flow.
-
setThreeDSFlow
void setThreeDSFlow(@Nullable() ThreeDS2Info.ThreeDSFlow threeDSFlow)
Sets the 3-D secure 2 flow.
- Parameters:
threeDSFlow
- The 3-D secure 2 flow.
-
requireAuthResponse
@NonNull() String requireAuthResponse()
-
requireDsRefId
@NonNull() String requireDsRefId()
-
requireDsCert
@NonNull() String requireDsCert()
-
requireDsRootCa
@NonNull() String requireDsRootCa()
-
requireProtocolVersion
@NonNull() String requireProtocolVersion()
-
requireThreeDSFlow
@NonNull() ThreeDS2Info.ThreeDSFlow requireThreeDSFlow()
-
requireCallbackUrl
@NonNull() String requireCallbackUrl()
-
isChallengeRequired
boolean isChallengeRequired()
Returns
true
if in-app challenge is required, otherwisefalse
.
-
isAuthParamsRequired
boolean isAuthParamsRequired()
Returns
true
if auth params are required, otherwisefalse
.
-
describeContents
int describeContents()
-
writeToParcel
void writeToParcel(Parcel parcel, int flags)
-
hashCode
int hashCode()
-
-
-
-