Class IsAttributeRequiredPredicate
java.lang.Object
net.shibboleth.idp.consent.logic.impl.IsAttributeRequiredPredicate
- All Implemented Interfaces:
Predicate<IdPAttribute>
Predicate that determines whether an IdP attribute is required by the requester.
-
Field Summary
FieldsModifier and TypeFieldDescriptionStrategy used to find theAttributeConsumingServicefrom theSAMLMetadataContext.private final org.slf4j.LoggerClass logger.Strategy used to find theSAMLMetadataContextfrom theProfileRequestContext.private final Multimap<String,IdPAttribute> Map of requested attributes. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ProfileRequestContextgetProfileRequestContext(HttpServletRequest httpRequest) Get the profile request context from the HTTP servlet request.protected Multimap<String,IdPAttribute> Get the map of requested attributes from the profile request context.booleantest(IdPAttribute input)
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
metadataContextLookupStrategy
Strategy used to find theSAMLMetadataContextfrom theProfileRequestContext. -
acsLookupStrategy
Strategy used to find theAttributeConsumingServicefrom theSAMLMetadataContext. -
requestedAttributesMap
Map of requested attributes.
-
-
Constructor Details
-
IsAttributeRequiredPredicate
Constructor.- Parameters:
request- the HTTP request
-
-
Method Details
-
getProfileRequestContext
@Nullable protected ProfileRequestContext getProfileRequestContext(@Nullable 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
- Specified by:
testin interfacePredicate<IdPAttribute>
-