-
- 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 enumThreeDS2Info.AuthStatusEnumeration of possible statuses for 3-D Secure authentication.
public enumThreeDS2Info.ThreeDSFlowEnumeration of possible 3-D Secure flows.
-
Field Summary
Fields Modifier and Type Field Description private final ThreeDS2Info.AuthStatusauthStatusprivate final StringauthResponseprivate StringcardHolderInfoprivate Stringbrandprivate StringprotocolVersionprivate StringcallbackUrlprivate StringchallengeCompletionCallbackUrlprivate StringdsRefIdprivate Stringkidprivate StringdsCertprivate StringdsRootCaprivate ThreeDS2Info.ThreeDSFlowthreeDSFlowpublic 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.AuthStatusgetAuthStatus()Returns status of 3-D Secure authentication. StringgetAuthResponse()Returns authentication response as JSON string required for launching in-app challenge screens. StringgetCardHolderInfo()Returns contents of the cardHolderInfo required for decoupled transactions. voidsetCardHolderInfo(@Nullable() String cardHolderInfo)Sets contents of the cardHolderInfo required for decoupled transactions. StringgetBrand()Returns the card brand. voidsetBrand(@Nullable() String brand)Sets the card brand. StringgetProtocolVersion()Returns the protocol version of 3-D secure 2. voidsetProtocolVersion(@Nullable() String protocolVersion)Sets the protocol version of 3-D secure 2. StringgetCallbackUrl()Returns the callback URL string to send the params needed for 3-D Secure 2 authentication request. voidsetCallbackUrl(@Nullable() String callbackUrl)Sets the callback URL string to send the params needed for 3-D Secure 2 authentication request. StringgetChallengeCompletionCallbackUrl()Returns the challenge completion callback URL. voidsetChallengeCompletionCallbackUrl(@Nullable() String challengeCompletionCallbackUrl)Sets the challenge completion callback URL. StringgetDsRefId()Returns the directory server reference id. voidsetDsRefId(@Nullable() String dsRefId)Sets the directory server reference id. StringgetKid()Returns the key identifier. voidsetKid(@Nullable() String kid)Sets the key identifier. StringgetDsCert()Returns the encryption certificate provided by the Directory Server. voidsetDsCert(@Nullable() String dsCert)Sets the encryption certificate provided by the Directory Server. StringgetDsRootCa()Returns the root CA certificate used to issue the DS_CERT. voidsetDsRootCa(@Nullable() String dsRootCa)Sets the root CA certificate used to issue the DS_CERT. ThreeDS2Info.ThreeDSFlowgetThreeDSFlow()Returns the 3-D secure 2 flow. voidsetThreeDSFlow(@Nullable() ThreeDS2Info.ThreeDSFlow threeDSFlow)Sets the 3-D secure 2 flow. StringrequireAuthResponse()StringrequireKid()StringrequireDsRefId()StringrequireDsCert()StringrequireDsRootCa()StringrequireProtocolVersion()ThreeDS2Info.ThreeDSFlowrequireThreeDSFlow()StringrequireCallbackUrl()booleanisChallengeRequired()Returns trueif in-app challenge is required, otherwisefalse.booleanisAuthParamsRequired()Returns trueif auth params are required, otherwisefalse.intdescribeContents()voidwriteToParcel(Parcel parcel, int flags)booleanequals(Object o)inthashCode()-
-
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.
-
getKid
@Nullable() String getKid()
Returns the key identifier. An identifier used to identify the Directory server certificate being used.
-
setKid
void setKid(@Nullable() String kid)
Sets the key identifier. An identifier used to identify the Directory server certificate being used.
- Parameters:
kid- The key identifier.
-
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()
-
requireKid
@NonNull() String requireKid()
-
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
trueif in-app challenge is required, otherwisefalse.
-
isAuthParamsRequired
boolean isAuthParamsRequired()
Returns
trueif auth params are required, otherwisefalse.
-
describeContents
int describeContents()
-
writeToParcel
void writeToParcel(Parcel parcel, int flags)
-
hashCode
int hashCode()
-
-
-
-