Class IsAttributeRequiredPredicate
java.lang.Object
net.shibboleth.idp.consent.logic.impl.IsAttributeRequiredPredicate
- All Implemented Interfaces:
Predicate<net.shibboleth.idp.attribute.IdPAttribute>
public class IsAttributeRequiredPredicate
extends Object
implements Predicate<net.shibboleth.idp.attribute.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.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.Get the map of requested attributes from the profile request context.booleantest(net.shibboleth.idp.attribute.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
@Nullable private final Multimap<String,net.shibboleth.idp.attribute.IdPAttribute> requestedAttributesMapMap 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,net.shibboleth.idp.attribute.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 net.shibboleth.idp.attribute.IdPAttribute input)
-