Class ConsentState

  • public final class ConsentState
    extends java.lang.Object
    ConsentState represents the set of purposes and regulations for which a user has consented for data collection.
    • Method Detail

      • withConsentState

        public static ConsentState.Builder withConsentState​(@NonNull
                                                            java.lang.String consentState)
      • getGDPRConsentState

        public java.util.Map<java.lang.String,​GDPRConsent> getGDPRConsentState()
        Retrieve the current GDPR consent state for this user.

        Note that all purpose keys will be lower-case and trimmed.

        returns an unmodifiable Map. Attempted mutation will result in an UnsupportedOperationException.
      • getCCPAConsentState

        public CCPAConsent getCCPAConsentState()
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object