Class ConsentManagementContext

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

public final class ConsentManagementContext extends BaseContext
Context representing signals to consent flows for managing their state.

This context acts as a public interface between other flows and flows that implement consent-related functionality.

  • Field Details

    • revokeConsent

      private boolean revokeConsent
      Whether to revoke consent previously granted.
  • Constructor Details

    • ConsentManagementContext

      public ConsentManagementContext()
      Constructor.
  • Method Details

    • getRevokeConsent

      public boolean getRevokeConsent()
      Get whether consent should be revoked.
      Returns:
      whether consent should be revoked
    • setRevokeConsent

      @Nonnull public ConsentManagementContext setRevokeConsent(boolean flag)
      Set whether consent should be revoked.
      Parameters:
      flag - flag to set
      Returns:
      this context
    • toString

      public String toString()
      Overrides:
      toString in class Object