Class RegisteredServiceRegexAttributeFilter

java.lang.Object
org.apereo.cas.services.support.RegisteredServiceRegexAttributeFilter
All Implemented Interfaces:
Serializable, org.apereo.cas.services.RegisteredServiceAttributeFilter, org.springframework.core.Ordered

public class RegisteredServiceRegexAttributeFilter extends Object implements org.apereo.cas.services.RegisteredServiceAttributeFilter
The regex filter that is responsible to make sure only attributes that match a certain regex pattern registered service are released.
Since:
4.0.0
See Also:
  • Constructor Details

    • RegisteredServiceRegexAttributeFilter

      public RegisteredServiceRegexAttributeFilter(String regex)
      Instantiates a new registered service regex attribute filter.
      Parameters:
      regex - the regex
  • Method Details

    • filter

      public Map<String,List<Object>> filter(Map<String,List<Object>> givenAttributes)

      Given attribute values may be an extension of Collection, Map or an array.

      • The filtering operation is non-recursive.
      • Multi-valued attributes such as those of type Collection and Map are expected to allow casting to Map<String, String> or Collection<String>. Values that are of type array are expected to allow casting to String[].
      • Multi-valued attributes are always put back into the final released collection of attributes as String[].
      • If the final filtered collection is empty, it will not be put into the collection of attributes.
      Specified by:
      filter in interface org.apereo.cas.services.RegisteredServiceAttributeFilter