Class AttributeQueryProfileConfiguration

All Implemented Interfaces:
InterceptorAwareProfileConfiguration, SAMLProfileConfiguration, AttributeQueryProfileConfiguration, ConditionalProfileConfiguration, ProfileConfiguration, SAMLArtifactAwareProfileConfiguration, SAMLArtifactConsumerProfileConfiguration, SAMLAssertionProducingProfileConfiguration, SAMLProfileConfiguration, AttributeQueryProfileConfiguration, SAML2AssertionProducingProfileConfiguration, SAML2ProfileConfiguration, Component, DestructableComponent, IdentifiableComponent, IdentifiedComponent, InitializableComponent

public class AttributeQueryProfileConfiguration extends AbstractSAML2AssertionProducingProfileConfiguration implements AttributeQueryProfileConfiguration
Configuration support for IdP SAML 2.0 attribute query profile.
  • Field Details

    • PROFILE_COUNTER

      @Nonnull @NotEmpty public static final String PROFILE_COUNTER
      Name of profile counter.
      See Also:
    • randomizeFriendlyNamePredicate

      @Nonnull private Predicate<ProfileRequestContext> randomizeFriendlyNamePredicate
      Whether the FriendlyName attribute should be randomized when encoding Attributes.
  • Constructor Details

    • AttributeQueryProfileConfiguration

      public AttributeQueryProfileConfiguration()
      Constructor.
    • AttributeQueryProfileConfiguration

      protected AttributeQueryProfileConfiguration(@Nonnull @NotEmpty String profileId)
      Constructor.
      Parameters:
      profileId - unique ID for this profile
  • Method Details

    • isRandomizeFriendlyName

      public boolean isRandomizeFriendlyName(@Nullable ProfileRequestContext profileRequestContext)
      Gets whether to randomize/perturb the FriendlyName attribute when encoding SAML 2.0 Attributes to enable probing of invalid behavior by relying parties.
      Specified by:
      isRandomizeFriendlyName in interface AttributeQueryProfileConfiguration
      Parameters:
      profileRequestContext - current profile request context
      Returns:
      true iff the FriendlyName should be randomized
    • setRandomizeFriendlyName

      public void setRandomizeFriendlyName(boolean flag)
      Set whether to randomize/perturb the FriendlyName attribute when encoding SAML 2.0 Attributes to enable probing of invalid behavior by relying parties.
      Parameters:
      flag - flag to set
      Since:
      5.1.0
    • setRandomizeFriendlyNamePredicate

      public void setRandomizeFriendlyNamePredicate(@Nonnull Predicate<ProfileRequestContext> condition)
      Set condition to determine whether to randomize/perturb the FriendlyName attribute when encoding SAML 2.0 Attributes to enable probing of invalid behavior by relying parties.
      Parameters:
      condition - condition to set
      Since:
      5.1.0