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 toSAMLProfileConfiguration.isSignRequests(ProfileRequestContext)or followsIDPSSODescriptor.getWantAuthnRequestsSigned()if so configured.
-
-
Field Summary
Fields Modifier and Type Field Description private booleanhonorMetadataWhether to override the result based on the WantAuthnRequestsSigned flag in SAML metadata.private Function<ProfileRequestContext,SAMLMetadataContext>metadataContextLookupStrategyLookup strategy forSAMLMetadataContext.
-
Constructor Summary
Constructors Constructor Description SignRequestsPredicate()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetHonorMetadata(boolean flag)Set whether to override the result based on the WantAuthnRequestsSigned flag in SAML metadata.voidsetMetadataContextLookupStrategy(Function<ProfileRequestContext,SAMLMetadataContext> strategy)Set lookup strategy forSAMLMetadataContext.booleantest(ProfileRequestContext input)-
Methods inherited from class net.shibboleth.idp.profile.logic.AbstractRelyingPartyPredicate
getRelyingPartyContextLookupStrategy, setRelyingPartyContextLookupStrategy
-
-
-
-
Field Detail
-
honorMetadata
private boolean honorMetadata
Whether to override the result based on the WantAuthnRequestsSigned flag in SAML metadata.
-
metadataContextLookupStrategy
private Function<ProfileRequestContext,SAMLMetadataContext> metadataContextLookupStrategy
Lookup strategy forSAMLMetadataContext.
-
-
Method Detail
-
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 forSAMLMetadataContext.- Parameters:
strategy- lookup strategy- Since:
- 4.0.0
-
test
public boolean test(@Nullable ProfileRequestContext input)
-
-