Class IncludeAttributeStatementPredicate
java.lang.Object
net.shibboleth.profile.context.logic.AbstractRelyingPartyPredicate
net.shibboleth.idp.saml.profile.config.logic.IncludeAttributeStatementPredicate
- All Implemented Interfaces:
Predicate<ProfileRequestContext>
A predicate that evaluates a SSO
ProfileRequestContext and determines whether an attribute statement
should be included in the outgoing assertion.
The "includeAttributeStatement" profile configuration flag is the main setting governing this decision,
but is overridden to "true" in the case that the outgoing SAMLBindingContext indicates the outbound
binding is an artifact mechanism.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate booleanisArtifactBinding(ProfileRequestContext profileRequestContext) Returns true iff the SAML binding is an artifact variant.voidSet lookup strategy forSAMLBindingContextto examine.booleantest(ProfileRequestContext input) Methods inherited from class net.shibboleth.profile.context.logic.AbstractRelyingPartyPredicate
getRelyingPartyContext, getRelyingPartyContextLookupStrategy, setRelyingPartyContextLookupStrategy
-
Field Details
-
bindingContextLookupStrategy
Strategy function for access toSAMLBindingContextto populate.
-
-
Constructor Details
-
IncludeAttributeStatementPredicate
public IncludeAttributeStatementPredicate()Constructor.
-
-
Method Details
-
setBindingContextLookupStrategy
public void setBindingContextLookupStrategy(@Nonnull Function<ProfileRequestContext, SAMLBindingContext> strategy) Set lookup strategy forSAMLBindingContextto examine.- Parameters:
strategy- lookup strategy
-
test
-
isArtifactBinding
Returns true iff the SAML binding is an artifact variant.- Parameters:
profileRequestContext- profile request context- Returns:
- true iff the SAML binding is an artifact variant
-