Package com.adyen.model
Class ThreeDSecureData
- java.lang.Object
-
- com.adyen.model.ThreeDSecureData
-
public class ThreeDSecureData extends Object
ThreeDSecureData
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classThreeDSecureData.AuthenticationResponseEnumIn 3D Secure 1, the authentication response if the shopper was redirected.static classThreeDSecureData.ChallengeCancelEnumIndicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled.static classThreeDSecureData.DirectoryResponseEnumIn 3D Secure 1, this is the enrollment response from the 3D directory server.
-
Constructor Summary
Constructors Constructor Description ThreeDSecureData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ThreeDSecureDataauthenticationResponse(ThreeDSecureData.AuthenticationResponseEnum authenticationResponse)ThreeDSecureDatacavv(byte[] cavv)ThreeDSecureDatacavvAlgorithm(String cavvAlgorithm)ThreeDSecureDatachallengeCancel(ThreeDSecureData.ChallengeCancelEnum challengeCancel)ThreeDSecureDatadirectoryResponse(ThreeDSecureData.DirectoryResponseEnum directoryResponse)ThreeDSecureDatadsTransID(String dsTransID)ThreeDSecureDataeci(String eci)booleanequals(Object o)ThreeDSecureData.AuthenticationResponseEnumgetAuthenticationResponse()In 3D Secure 1, the authentication response if the shopper was redirected.byte[]getCavv()The cardholder authentication value (base64 encoded, 20 bytes in a decoded form).StringgetCavvAlgorithm()The CAVV algorithm used.ThreeDSecureData.ChallengeCancelEnumgetChallengeCancel()Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled.ThreeDSecureData.DirectoryResponseEnumgetDirectoryResponse()In 3D Secure 1, this is the enrollment response from the 3D directory server.StringgetDsTransID()Supported for 3D Secure 2.StringgetEci()The electronic commerce indicator.StringgetRiskScore()Risk score calculated by Directory Server (DS).StringgetThreeDSVersion()The version of the 3D Secure protocol.byte[]getTokenAuthenticationVerificationValue()Network token authentication verification value (TAVV).StringgetTransStatusReason()Provides information on why the `transStatus` field has the specified value.byte[]getXid()Supported for 3D Secure 1.inthashCode()ThreeDSecureDatariskScore(String riskScore)voidsetAuthenticationResponse(ThreeDSecureData.AuthenticationResponseEnum authenticationResponse)voidsetCavv(byte[] cavv)voidsetCavvAlgorithm(String cavvAlgorithm)voidsetChallengeCancel(ThreeDSecureData.ChallengeCancelEnum challengeCancel)voidsetDirectoryResponse(ThreeDSecureData.DirectoryResponseEnum directoryResponse)voidsetDsTransID(String dsTransID)voidsetEci(String eci)voidsetRiskScore(String riskScore)voidsetThreeDSVersion(String threeDSVersion)voidsetTokenAuthenticationVerificationValue(byte[] tokenAuthenticationVerificationValue)voidsetTransStatusReason(String transStatusReason)voidsetXid(byte[] xid)ThreeDSecureDatathreeDSVersion(String threeDSVersion)ThreeDSecureDatatokenAuthenticationVerificationValue(byte[] tokenAuthenticationVerificationValue)StringtoString()ThreeDSecureDatatransStatusReason(String transStatusReason)ThreeDSecureDataxid(byte[] xid)
-
-
-
Method Detail
-
authenticationResponse
public ThreeDSecureData authenticationResponse(ThreeDSecureData.AuthenticationResponseEnum authenticationResponse)
-
getAuthenticationResponse
public ThreeDSecureData.AuthenticationResponseEnum getAuthenticationResponse()
In 3D Secure 1, the authentication response if the shopper was redirected. In 3D Secure 2, this is the `transStatus` from the challenge result. If the transaction was frictionless, omit this parameter.- Returns:
- authenticationResponse
-
setAuthenticationResponse
public void setAuthenticationResponse(ThreeDSecureData.AuthenticationResponseEnum authenticationResponse)
-
cavv
public ThreeDSecureData cavv(byte[] cavv)
-
getCavv
public byte[] getCavv()
The cardholder authentication value (base64 encoded, 20 bytes in a decoded form).- Returns:
- cavv
-
setCavv
public void setCavv(byte[] cavv)
-
cavvAlgorithm
public ThreeDSecureData cavvAlgorithm(String cavvAlgorithm)
-
getCavvAlgorithm
public String getCavvAlgorithm()
The CAVV algorithm used. Include this only for 3D Secure 1.- Returns:
- cavvAlgorithm
-
setCavvAlgorithm
public void setCavvAlgorithm(String cavvAlgorithm)
-
challengeCancel
public ThreeDSecureData challengeCancel(ThreeDSecureData.ChallengeCancelEnum challengeCancel)
-
getChallengeCancel
public ThreeDSecureData.ChallengeCancelEnum getChallengeCancel()
Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata).- Returns:
- challengeCancel
-
setChallengeCancel
public void setChallengeCancel(ThreeDSecureData.ChallengeCancelEnum challengeCancel)
-
directoryResponse
public ThreeDSecureData directoryResponse(ThreeDSecureData.DirectoryResponseEnum directoryResponse)
-
getDirectoryResponse
public ThreeDSecureData.DirectoryResponseEnum getDirectoryResponse()
In 3D Secure 1, this is the enrollment response from the 3D directory server. In 3D Secure 2, this is the `transStatus` from the `ARes`.- Returns:
- directoryResponse
-
setDirectoryResponse
public void setDirectoryResponse(ThreeDSecureData.DirectoryResponseEnum directoryResponse)
-
dsTransID
public ThreeDSecureData dsTransID(String dsTransID)
-
getDsTransID
public String getDsTransID()
Supported for 3D Secure 2. The unique transaction identifier assigned by the Directory Server (DS) to identify a single transaction.- Returns:
- dsTransID
-
setDsTransID
public void setDsTransID(String dsTransID)
-
eci
public ThreeDSecureData eci(String eci)
-
getEci
public String getEci()
The electronic commerce indicator.- Returns:
- eci
-
setEci
public void setEci(String eci)
-
riskScore
public ThreeDSecureData riskScore(String riskScore)
-
getRiskScore
public String getRiskScore()
Risk score calculated by Directory Server (DS). Required for Cartes Bancaires integrations.- Returns:
- riskScore
-
setRiskScore
public void setRiskScore(String riskScore)
-
threeDSVersion
public ThreeDSecureData threeDSVersion(String threeDSVersion)
-
getThreeDSVersion
public String getThreeDSVersion()
The version of the 3D Secure protocol.- Returns:
- threeDSVersion
-
setThreeDSVersion
public void setThreeDSVersion(String threeDSVersion)
-
tokenAuthenticationVerificationValue
public ThreeDSecureData tokenAuthenticationVerificationValue(byte[] tokenAuthenticationVerificationValue)
-
getTokenAuthenticationVerificationValue
public byte[] getTokenAuthenticationVerificationValue()
Network token authentication verification value (TAVV). The network token cryptogram.- Returns:
- tokenAuthenticationVerificationValue
-
setTokenAuthenticationVerificationValue
public void setTokenAuthenticationVerificationValue(byte[] tokenAuthenticationVerificationValue)
-
transStatusReason
public ThreeDSecureData transStatusReason(String transStatusReason)
-
getTransStatusReason
public String getTransStatusReason()
Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values).- Returns:
- transStatusReason
-
setTransStatusReason
public void setTransStatusReason(String transStatusReason)
-
xid
public ThreeDSecureData xid(byte[] xid)
-
getXid
public byte[] getXid()
Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in a decoded form).- Returns:
- xid
-
setXid
public void setXid(byte[] xid)
-
-