Package de.adorsys.psd2.model
Class ChallengeData
- java.lang.Object
-
- de.adorsys.psd2.model.ChallengeData
-
@Validated @Generated(value="io.swagger.codegen.v3.generators.java.SpringCodegen", date="2021-05-24T13:41:46.273636+03:00[Europe/Kiev]") public class ChallengeData extends ObjectIt is contained in addition to the data element 'chosenScaMethod' if challenge data is needed for SCA. In rare cases this attribute is also used in the context of the 'startAuthorisationWithPsuAuthentication' link.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classChallengeData.OtpFormatEnumThe format type of the OTP to be typed in.
-
Constructor Summary
Constructors Constructor Description ChallengeData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChallengeDataaddDataItem(String dataItem)ChallengeDataadditionalInformation(String additionalInformation)ChallengeDatadata(List<String> data)booleanequals(Object o)StringgetAdditionalInformation()Additional explanation for the PSU to explain e.g.List<String>getData()A collection of strings as challenge data.byte[]getImage()PNG data (max.StringgetImageLink()A link where the ASPSP will provides the challenge image for the TPP.ChallengeData.OtpFormatEnumgetOtpFormat()The format type of the OTP to be typed in.IntegergetOtpMaxLength()The maximal length for the OTP to be typed in by the PSU.inthashCode()ChallengeDataimage(byte[] image)ChallengeDataimageLink(String imageLink)ChallengeDataotpFormat(ChallengeData.OtpFormatEnum otpFormat)ChallengeDataotpMaxLength(Integer otpMaxLength)voidsetAdditionalInformation(String additionalInformation)voidsetData(List<String> data)voidsetImage(byte[] image)voidsetImageLink(String imageLink)voidsetOtpFormat(ChallengeData.OtpFormatEnum otpFormat)voidsetOtpMaxLength(Integer otpMaxLength)StringtoString()
-
-
-
Method Detail
-
image
public ChallengeData image(byte[] image)
-
getImage
public byte[] getImage()
PNG data (max. 512 kilobyte) to be displayed to the PSU, Base64 encoding, cp. [RFC4648]. This attribute is used only, when PHOTO_OTP or CHIP_OTP is the selected SCA method.- Returns:
- image
-
setImage
public void setImage(byte[] image)
-
data
public ChallengeData data(List<String> data)
-
addDataItem
public ChallengeData addDataItem(String dataItem)
-
imageLink
public ChallengeData imageLink(String imageLink)
-
getImageLink
public String getImageLink()
A link where the ASPSP will provides the challenge image for the TPP.- Returns:
- imageLink
-
setImageLink
public void setImageLink(String imageLink)
-
otpMaxLength
public ChallengeData otpMaxLength(Integer otpMaxLength)
-
getOtpMaxLength
public Integer getOtpMaxLength()
The maximal length for the OTP to be typed in by the PSU.- Returns:
- otpMaxLength
-
setOtpMaxLength
public void setOtpMaxLength(Integer otpMaxLength)
-
otpFormat
public ChallengeData otpFormat(ChallengeData.OtpFormatEnum otpFormat)
-
getOtpFormat
public ChallengeData.OtpFormatEnum getOtpFormat()
The format type of the OTP to be typed in. The admitted values are \"characters\" or \"integer\".- Returns:
- otpFormat
-
setOtpFormat
public void setOtpFormat(ChallengeData.OtpFormatEnum otpFormat)
-
additionalInformation
public ChallengeData additionalInformation(String additionalInformation)
-
getAdditionalInformation
public String getAdditionalInformation()
Additional explanation for the PSU to explain e.g. fallback mechanism for the chosen SCA method. The TPP is obliged to show this to the PSU.- Returns:
- additionalInformation
-
setAdditionalInformation
public void setAdditionalInformation(String additionalInformation)
-
-