Class AbstractRegexpPolicyRule
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
net.shibboleth.idp.attribute.filter.policyrule.impl.AbstractPolicyRule
net.shibboleth.idp.attribute.filter.policyrule.impl.AbstractRegexpPolicyRule
- All Implemented Interfaces:
PolicyRequirementRule,Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent
- Direct Known Subclasses:
AttributeIssuerRegexpPolicyRule,AttributeRequesterRegexpPolicyRule,PrincipalNameRegexpPolicyRule,ProxiedRequesterRegexpPolicyRule
General
Matcher for regexp comparison of strings in Attribute Filters.-
Nested Class Summary
Nested classes/interfaces inherited from interface net.shibboleth.idp.attribute.filter.PolicyRequirementRule
PolicyRequirementRule.Tristate -
Field Summary
FieldsFields inherited from interface net.shibboleth.idp.attribute.filter.PolicyRequirementRule
MATCHES_ALL, MATCHES_NONE, REQUIREMENT_RULE_FAILS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidGets the regular expression to match.protected PolicyRequirementRule.TristateregexpCompare(String value) Matches the given value against the provided regular expression.voidsetPattern(Pattern thePattern) Sets thePatternfor matching to match.Methods inherited from class net.shibboleth.idp.attribute.filter.policyrule.impl.AbstractPolicyRule
getLogPrefixMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
setIdMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
ensureId, getId, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentExceptionMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.shared.component.IdentifiedComponent
getIdMethods inherited from interface net.shibboleth.idp.attribute.filter.PolicyRequirementRule
matches
-
Field Details
-
pattern
Regular expression to match.
-
-
Constructor Details
-
AbstractRegexpPolicyRule
public AbstractRegexpPolicyRule()
-
-
Method Details
-
getRegularExpression
Gets the regular expression to match.- Returns:
- regular expression to match
-
setPattern
Sets thePatternfor matching to match.- Parameters:
thePattern- the pattern to match
-
doInitialize
- Overrides:
doInitializein classAbstractPolicyRule- Throws:
ComponentInitializationException
-
regexpCompare
Matches the given value against the provided regular expression.- Parameters:
value- the value to evaluate- Returns:
- true if the value matches the given match string, false if not
-