Class ArtifactResolutionProfileConfiguration

All Implemented Interfaces:
InterceptorAwareProfileConfiguration, SAMLProfileConfiguration, ConditionalProfileConfiguration, ProfileConfiguration, SAMLProfileConfiguration, ArtifactResolutionProfileConfiguration, SAML2ProfileConfiguration, Component, DestructableComponent, IdentifiableComponent, IdentifiedComponent, InitializableComponent

public class ArtifactResolutionProfileConfiguration extends AbstractSAML2ProfileConfiguration implements ArtifactResolutionProfileConfiguration
Configuration support for IdP SAML 2.0 artifact resolution profile.
  • Field Details

    • PROFILE_COUNTER

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

      @Nonnull private Predicate<ProfileRequestContext> signAssertionsPredicate
      Predicate used to determine whether to sign assertions.
    • encryptAssertionsPredicate

      @Nonnull private Predicate<ProfileRequestContext> encryptAssertionsPredicate
      Predicate used to determine if assertions should be encrypted.
    • encryptAttributesPredicate

      @Nonnull private Predicate<ProfileRequestContext> encryptAttributesPredicate
      Predicate used to determine if attributes should be encrypted.
  • Constructor Details

    • ArtifactResolutionProfileConfiguration

      public ArtifactResolutionProfileConfiguration()
      Constructor.
    • ArtifactResolutionProfileConfiguration

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

    • isSignAssertions

      public boolean isSignAssertions(@Nullable ProfileRequestContext profileRequestContext)
      Specified by:
      isSignAssertions in interface ArtifactResolutionProfileConfiguration
    • setSignAssertions

      public void setSignAssertions(boolean flag)
      Set whether generated assertions should be signed.
      Parameters:
      flag - flag to set
    • setSignAssertionsPredicate

      public void setSignAssertionsPredicate(@Nonnull Predicate<ProfileRequestContext> predicate)
      Set the predicate used to determine if generated assertions should be signed.
      Parameters:
      predicate - predicate used to determine if generated assertions should be signed
    • isEncryptAssertions

      public boolean isEncryptAssertions(@Nullable ProfileRequestContext profileRequestContext)
      Specified by:
      isEncryptAssertions in interface ArtifactResolutionProfileConfiguration
    • setEncryptAssertions

      public void setEncryptAssertions(boolean flag)
      Set whether assertions should be encrypted.
      Parameters:
      flag - flag to set
    • setEncryptAssertionsPredicate

      public void setEncryptAssertionsPredicate(@Nonnull Predicate<ProfileRequestContext> predicate)
      Set the predicate used to determine if assertions should be encrypted.
      Parameters:
      predicate - predicate used to determine if assertions should be encrypted
    • isEncryptAttributes

      public boolean isEncryptAttributes(@Nullable ProfileRequestContext profileRequestContext)
      Specified by:
      isEncryptAttributes in interface ArtifactResolutionProfileConfiguration
    • setEncryptAttributes

      public void setEncryptAttributes(boolean flag)
      Set whether attributes should be encrypted.
      Parameters:
      flag - flag to set
    • setEncryptAttributesPredicate

      public void setEncryptAttributesPredicate(@Nonnull Predicate<ProfileRequestContext> predicate)
      Set the predicate used to determine if attributes should be encrypted.
      Parameters:
      predicate - predicate used to determine if attributes should be encrypted