Class MockMatcher

    • Field Detail

      • matchingAttribute

        private String matchingAttribute
        ID of the attribute to which this matcher applies.
      • matchingValues

        private Collection<?> matchingValues
        Values, of the attribute, considered to match this matcher.
      • initialized

        private boolean initialized
        state variable
      • fails

        private boolean fails
        do we fail when validate is called? do we fail when we are called?
      • contextUsed

        private net.shibboleth.idp.attribute.filter.context.AttributeFilterContext contextUsed
        what was passed to getMatchingValues().
    • Constructor Detail

      • MockMatcher

        public MockMatcher()
    • Method Detail

      • setMatchingAttribute

        public void setMatchingAttribute​(String id)
        Sets the ID of the attribute to which this matcher applies.
        Parameters:
        id - ID of the attribute to which this matcher applies
      • setMatchingValues

        public void setMatchingValues​(Collection<?> values)
        Sets the values, of the attribute, considered to match this matcher. If null then all attribute values are considered to be matching.
        Parameters:
        values - values, of the attribute, considered to match this matcher
      • getMatchingValues

        public Set<net.shibboleth.idp.attribute.IdPAttributeValue> getMatchingValues​(net.shibboleth.idp.attribute.IdPAttribute attribute,
                                                                                     net.shibboleth.idp.attribute.filter.context.AttributeFilterContext filterContext)
        Specified by:
        getMatchingValues in interface net.shibboleth.idp.attribute.filter.Matcher
      • getContextUsedAndReset

        public net.shibboleth.idp.attribute.filter.context.AttributeFilterContext getContextUsedAndReset()
      • setFailValidate

        public void setFailValidate​(boolean doFail)