Package org.apereo.cas.services.support
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:
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
getOrder()
int
hashCode()
boolean
boolean
boolean
void
setCaseInsensitive
(boolean caseInsensitive) void
setCompleteMatch
(boolean completeMatch) void
setExcludeUnmappedAttributes
(boolean excludeUnmappedAttributes) void
setOrder
(int order) void
setPatterns
(Map<String, Object> patterns)
-
Constructor Details
-
RegisteredServiceMappedRegexAttributeFilter
-
RegisteredServiceMappedRegexAttributeFilter
public RegisteredServiceMappedRegexAttributeFilter()
-
-
Method Details
-
filter
- Specified by:
filter
in interfaceorg.apereo.cas.services.RegisteredServiceAttributeFilter
-
getPatterns
-
isExcludeUnmappedAttributes
public boolean isExcludeUnmappedAttributes() -
isCaseInsensitive
public boolean isCaseInsensitive() -
isCompleteMatch
public boolean isCompleteMatch() -
getOrder
public int getOrder()- Specified by:
getOrder
in interfaceorg.springframework.core.Ordered
- Specified by:
getOrder
in interfaceorg.apereo.cas.services.RegisteredServiceAttributeFilter
-
setPatterns
-
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
-
hashCode
public int hashCode()
-