Class AttributeReleaseFlowDescriptor

All Implemented Interfaces:
Predicate<ProfileRequestContext>, FlowDescriptor, Component, DestructableComponent, IdentifiableComponent, IdentifiedComponent, InitializableComponent

public class AttributeReleaseFlowDescriptor
extends ConsentFlowDescriptor
Descriptor for an attribute release flow.
  • Field Details

    • doNotRememberConsentAllowed

      private boolean doNotRememberConsentAllowed
      Whether not remembering consent is allowed.
    • globalConsentAllowed

      private boolean globalConsentAllowed
      Whether consent to any attribute and to any relying party is allowed.
    • perAttributeConsentEnabled

      private boolean perAttributeConsentEnabled
      Whether per-attribute consent is enabled.
    • attributeValuesHashFunction

      @Nonnull private Function<Collection<IdPAttributeValue>,​String> attributeValuesHashFunction
      Function to create hash of all attribute values.
  • Constructor Details

    • AttributeReleaseFlowDescriptor

      public AttributeReleaseFlowDescriptor()
      Constructor.
  • Method Details

    • isDoNotRememberConsentAllowed

      public boolean isDoNotRememberConsentAllowed()
      Get whether not remembering consent is allowed.
      Returns:
      true if consent should not be remembered
    • isGlobalConsentAllowed

      public boolean isGlobalConsentAllowed()
      Get whether consent to any attribute and to any relying party is allowed.
      Returns:
      true iff consent to any attribute and to any relying party is allowed
    • isPerAttributeConsentEnabled

      public boolean isPerAttributeConsentEnabled()
      Get whether per-attribute consent is enabled.
      Returns:
      true iff per-attribute consent is enabled
    • getAttributeValuesHashFunction

      @Nonnull public Function<Collection<IdPAttributeValue>,​String> getAttributeValuesHashFunction()
      Get the function to create hash of all attribute values.
      Returns:
      function to create hash of all attribute values
    • setDoNotRememberConsentAllowed

      public void setDoNotRememberConsentAllowed​(boolean flag)
      Set whether not remembering consent is allowed.
      Parameters:
      flag - true if consent should not be remembered
    • setGlobalConsentAllowed

      public void setGlobalConsentAllowed​(boolean flag)
      Set whether consent to any attribute and to any relying party is allowed.
      Parameters:
      flag - true iff consent to any attribute and to any relying party is allowed
    • setPerAttributeConsentEnabled

      public void setPerAttributeConsentEnabled​(boolean flag)
      Set whether per-attribute consent is enabled.
      Parameters:
      flag - true iff per-attribute consent is enabled
    • setAttributeValuesHashFunction

      public void setAttributeValuesHashFunction​(@Nonnull Function<Collection<IdPAttributeValue>,​String> function)
      Set the function to create hash of all attribute values.
      Parameters:
      function - function to create hash of all attribute values