Class AspspConsentData
- java.lang.Object
-
- de.adorsys.psd2.xs2a.core.consent.AspspConsentData
-
public final class AspspConsentData extends Object
This class is used as a container of some binary data to be used on SPI level. SPI developers may save here necessary information, that will be stored and encrypted in consent. SPI developer shall not use this class without consentId!
-
-
Constructor Summary
Constructors Constructor Description AspspConsentData(@org.jetbrains.annotations.Nullable byte[] aspspConsentData, @NotNull String consentId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)@org.jetbrains.annotations.Nullable byte[]getAspspConsentData()Encrypted data that may be stored in the consent management system in the consent linked to a request.
May be null if consent does not contain such data, or request isn't done from a workflow with a consent@NotNull StringgetConsentId()inthashCode()booleanisEmptyConsentData()Checks whether consent data is contains information or notStringtoString()
-
-
-
Constructor Detail
-
AspspConsentData
@ConstructorProperties({"aspspConsentData","consentId"}) public AspspConsentData(@Nullable @org.jetbrains.annotations.Nullable byte[] aspspConsentData, @NotNull @NotNull String consentId)
-
-
Method Detail
-
isEmptyConsentData
public boolean isEmptyConsentData()
Checks whether consent data is contains information or not- Returns:
trueif consent data is empty.falseotherwise.
-
getAspspConsentData
@Nullable public @org.jetbrains.annotations.Nullable byte[] getAspspConsentData()
Encrypted data that may be stored in the consent management system in the consent linked to a request.
May be null if consent does not contain such data, or request isn't done from a workflow with a consent
-
getConsentId
@NotNull public @NotNull String getConsentId()
-
-