Package org.apereo.cas.services.support
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:
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
ConstructorDescriptionInstantiates a new registered service regex attribute filter. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apereo.cas.services.RegisteredServiceAttributeFilter
getOrder
-
Constructor Details
-
RegisteredServiceRegexAttributeFilter
Instantiates a new registered service regex attribute filter.- Parameters:
regex
- the regex
-
-
Method Details
-
filter
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
andMap
are expected to allow casting toMap<String, String>
orCollection<String>
. Values that are of type array are expected to allow casting toString[]
. - 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 interfaceorg.apereo.cas.services.RegisteredServiceAttributeFilter
-