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

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

        @NonNull
        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:
        returns an unmodifiable Map. Attempted mutation will result in an UnsupportedOperationException.
      • getCCPAConsentState

        @Nullable
        public CCPAConsent getCCPAConsentState()
      • toString

        @NonNull
        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object