Class RegisteredServiceMappedRegexAttributeFilter

java.lang.Object
org.apereo.cas.services.support.RegisteredServiceMappedRegexAttributeFilter
All Implemented Interfaces:
Serializable, org.apereo.cas.services.RegisteredServiceAttributeFilter, org.springframework.core.Ordered
Direct Known Subclasses:
RegisteredServiceMutantRegexAttributeFilter, RegisteredServiceReverseMappedRegexAttributeFilter

public class RegisteredServiceMappedRegexAttributeFilter extends Object implements org.apereo.cas.services.RegisteredServiceAttributeFilter
A filtering policy that selectively applies patterns to attributes mapped in the config. If an attribute is mapped, it's only allowed to be released if it matches the linked pattern. If an attribute is not mapped, it may optionally be excluded from the released set of attributes.
Since:
5.1.0
See Also:
  • Constructor Details

    • RegisteredServiceMappedRegexAttributeFilter

      public RegisteredServiceMappedRegexAttributeFilter(Map<String,Object> patterns)
    • RegisteredServiceMappedRegexAttributeFilter

      public RegisteredServiceMappedRegexAttributeFilter()
  • Method Details

    • filter

      public Map<String,List<Object>> filter(Map<String,List<Object>> givenAttributes)
      Specified by:
      filter in interface org.apereo.cas.services.RegisteredServiceAttributeFilter
    • getPatterns

      public Map<String,Object> getPatterns()
    • isExcludeUnmappedAttributes

      public boolean isExcludeUnmappedAttributes()
    • isCaseInsensitive

      public boolean isCaseInsensitive()
    • isCompleteMatch

      public boolean isCompleteMatch()
    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface org.springframework.core.Ordered
      Specified by:
      getOrder in interface org.apereo.cas.services.RegisteredServiceAttributeFilter
    • setPatterns

      public void setPatterns(Map<String,Object> patterns)
    • setExcludeUnmappedAttributes

      public void setExcludeUnmappedAttributes(boolean excludeUnmappedAttributes)
    • setCaseInsensitive

      public void setCaseInsensitive(boolean caseInsensitive)
    • setCompleteMatch

      public void setCompleteMatch(boolean completeMatch)
    • setOrder

      public void setOrder(int order)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object