Class 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 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:
        true if consent data is empty. false otherwise.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • 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()