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 Details

  • Constructor Details

    • IsAttributeRequiredPredicate

      public IsAttributeRequiredPredicate(@Nullable HttpServletRequest request)
      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)
      Specified by:
      test in interface Predicate<net.shibboleth.idp.attribute.IdPAttribute>