Class ConsentContext

java.lang.Object
org.opensaml.messaging.context.BaseContext
net.shibboleth.idp.consent.context.ConsentContext
All Implemented Interfaces:
Iterable<BaseContext>

public final class ConsentContext extends BaseContext
Context representing the state of a consent flow. Holds consent previously given as well as obtained from user input.
  • Field Details

  • Constructor Details

    • ConsentContext

      public ConsentContext()
      Constructor.
  • Method Details

    • getCurrentConsents

      @Nonnull @NonnullElements @Live public Map<String,Consent> getCurrentConsents()
      Get map of current consent extracted from user input and keyed by consent id.
      Returns:
      map of current consent extracted from user input and keyed by consent id
    • getPreviousConsents

      @Nonnull @NonnullElements @Live public Map<String,Consent> getPreviousConsents()
      Get map of previous consent read from storage and keyed by consent id.
      Returns:
      map of previous consent read from storage and keyed by consent id
    • toString

      public String toString()
      Overrides:
      toString in class Object