Class AttributeInOIDCRequestedClaimsMatcher

    • Field Detail

      • log

        @Nonnull
        private final org.slf4j.Logger log
        Class logger.
      • matchIfRequestedClaimsSilent

        private boolean matchIfRequestedClaimsSilent
        Whether to return a match if the request contains no requested claims.
      • matchOnlyIDToken

        private boolean matchOnlyIDToken
        Whether to look for a match only in id token part.
      • matchOnlyUserInfo

        private boolean matchOnlyUserInfo
        Whether to look for a match only in user info part.
      • onlyIfEssential

        private boolean onlyIfEssential
        Whether to drop non essential claims.
      • logPrefix

        private String logPrefix
        The String used to prefix log message.
    • Constructor Detail

      • AttributeInOIDCRequestedClaimsMatcher

        public AttributeInOIDCRequestedClaimsMatcher()
    • Method Detail

      • getOnlyIfEssential

        public boolean getOnlyIfEssential()
        Gets whether to drop non essential claims.
        Returns:
        whether to drop non essential claims
      • setOnlyIfEssential

        public void setOnlyIfEssential​(boolean flag)
        Sets whether to drop non essential claims.
        Parameters:
        flag - whether to drop non essential claims
      • getMatchOnlyIDToken

        public boolean getMatchOnlyIDToken()
        Gets whether to match only id token part of the requested claims.
        Returns:
        whether to match only id token part of the requested claims
      • setMatchOnlyIDToken

        public void setMatchOnlyIDToken​(boolean flag)
        Sets whether to match only id token part of the requested claims.
        Parameters:
        flag - whether to match only id token part of the requested claims
      • getMatchOnlyUserInfo

        public boolean getMatchOnlyUserInfo()
        Gets whether to match only user info part of the requested claims.
        Returns:
        whether to match only user info part of the requested claims
      • setMatchOnlyUserInfo

        public void setMatchOnlyUserInfo​(boolean flag)
        Sets whether to match only user info part of the requested claims.
        Parameters:
        flag - whether to match only user info part of the requested claims
      • getMatchIRequestedClaimsSilent

        public boolean getMatchIRequestedClaimsSilent()
        Gets whether to matched if the request contains no requested claims.
        Returns:
        whether to match if the request contains no requested claims
      • setMatchIfRequestedClaimsSilent

        public void setMatchIfRequestedClaimsSilent​(boolean flag)
        Sets whether to match if the request contains no requested claims.
        Parameters:
        flag - whether to match if the request contains no requested claims
      • getMatchingValues

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

        private boolean verifyEssentiality​(Collection<net.shibboleth.idp.attribute.IdPAttribute> claims)
        Checks whether any of the matching requested claims have the required flag set if necessary.
        Parameters:
        claims - claims request claims
        Returns:
        whether any of the matching requested claims have the required flag set if necessary
      • getLogPrefix

        @Nonnull
        protected String getLogPrefix()
        Return a string which is to be prepended to all log messages.
        Returns:
        "Attribute Filter '<filterID>' :"