Class SignRequestsPredicate

java.lang.Object
net.shibboleth.idp.profile.logic.AbstractRelyingPartyPredicate
net.shibboleth.idp.saml.profile.config.logic.SignRequestsPredicate
All Implemented Interfaces:
Predicate<ProfileRequestContext>, Predicate<ProfileRequestContext>

public class SignRequestsPredicate
extends AbstractRelyingPartyPredicate
A predicate implementation that forwards to SAMLProfileConfiguration.isSignRequests(ProfileRequestContext) or follows IDPSSODescriptor.getWantAuthnRequestsSigned() if so configured.
  • Field Details

  • Constructor Details

    • SignRequestsPredicate

      public SignRequestsPredicate()
      Constructor.
  • Method Details

    • setHonorMetadata

      public void setHonorMetadata​(boolean flag)
      Set whether to override the result based on the WantAuthnRequestsSigned flag in SAML metadata.

      Defaults to false.

      Parameters:
      flag - flag to set
      Since:
      4.0.0
    • setMetadataContextLookupStrategy

      public void setMetadataContextLookupStrategy​(@Nonnull Function<ProfileRequestContext,​SAMLMetadataContext> strategy)
      Set lookup strategy for SAMLMetadataContext.
      Parameters:
      strategy - lookup strategy
      Since:
      4.0.0
    • test

      public boolean test​(@Nullable ProfileRequestContext input)