Package 

Class ThreeDS2Info

  • All Implemented Interfaces:
    android.os.Parcelable

    
    public class ThreeDS2Info
     implements Parcelable
                        

    Class to represent 3-D Secure 2 parameters.

    • 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

      • getAuthResponse

        @Nullable() String getAuthResponse()

        Returns authentication response as JSON string required for launching in-app challenge screens.

      • 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.
      • 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.
      • 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.
      • isChallengeRequired

         boolean isChallengeRequired()

        Returns true if in-app challenge is required, otherwise false.

      • isAuthParamsRequired

         boolean isAuthParamsRequired()

        Returns true if auth params are required, otherwise false.