Class IsAttributeRequiredPredicate
- java.lang.Object
-
- net.shibboleth.idp.consent.logic.impl.IsAttributeRequiredPredicate
-
- All Implemented Interfaces:
Predicate<IdPAttribute>,Predicate<IdPAttribute>
public class IsAttributeRequiredPredicate extends Object implements Predicate<IdPAttribute>
Predicate that determines whether an IdP attribute is required by the requester.
-
-
Field Summary
Fields Modifier and Type Field Description private Function<SAMLMetadataContext,AttributeConsumingService>acsLookupStrategyStrategy used to find theAttributeConsumingServicefrom theSAMLMetadataContext.private org.slf4j.LoggerlogClass logger.private Function<ProfileRequestContext,SAMLMetadataContext>metadataContextLookupStrategyStrategy used to find theSAMLMetadataContextfrom theProfileRequestContext.private Multimap<String,IdPAttribute>requestedAttributesMapMap of requested attributes.
-
Constructor Summary
Constructors Constructor Description IsAttributeRequiredPredicate(javax.servlet.http.HttpServletRequest request)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ProfileRequestContextgetProfileRequestContext(javax.servlet.http.HttpServletRequest httpRequest)Get the profile request context from the HTTP servlet request.protected Multimap<String,IdPAttribute>getRequestedAttributes(ProfileRequestContext prc)Get the map of requested attributes from the profile request context.booleantest(IdPAttribute input)
-
-
-
Field Detail
-
log
@Nonnull private final org.slf4j.Logger log
Class logger.
-
metadataContextLookupStrategy
@Nonnull private Function<ProfileRequestContext,SAMLMetadataContext> metadataContextLookupStrategy
Strategy used to find theSAMLMetadataContextfrom theProfileRequestContext.
-
acsLookupStrategy
@Nonnull private Function<SAMLMetadataContext,AttributeConsumingService> acsLookupStrategy
Strategy used to find theAttributeConsumingServicefrom theSAMLMetadataContext.
-
requestedAttributesMap
@Nullable private final Multimap<String,IdPAttribute> requestedAttributesMap
Map of requested attributes.
-
-
Method Detail
-
getProfileRequestContext
@Nullable protected ProfileRequestContext getProfileRequestContext(@Nullable javax.servlet.http.HttpServletRequest httpRequest)
Get the profile request context from the HTTP servlet request.- Parameters:
httpRequest- the HTTP request- Returns:
- the profile request context or
null
-
getRequestedAttributes
@Nullable protected Multimap<String,IdPAttribute> getRequestedAttributes(@Nullable ProfileRequestContext prc)
Get the map of requested attributes from the profile request context.- Parameters:
prc- the profile request context- Returns:
- the map of requested attributes or
null
-
test
public boolean test(@Nullable IdPAttribute input)- Specified by:
testin interfacePredicate<IdPAttribute>
-
-