Class ValidWReplyExtractor

    • Constructor Detail

      • ValidWReplyExtractor

        public ValidWReplyExtractor()
    • Method Detail

      • extractValidDomains

        public Collection<String> extractValidDomains​(ValidWReplyExtractor.WSFederationEntityInfo entityInfo)
        Description copied from interface: ValidDomainExtractor
        Extracts the Valid goto URL domains based on the provided configuration details.

        An empty collection and null are two different answers, and FailSafeRedirectUrlValidator tells them apart:

        • an empty collection means the configuration was read and holds no URL patterns, which is what a realm or entity that was never configured looks like;
        • null means the configuration could not be read at all - the store is unreachable, or the caller did not say which configuration to read - so nothing is known about the patterns. Callers that fail safe refuse to redirect off this server in that case, whatever they make of an empty list.

        RedirectUrlValidator, which fails open, treats the two the same.

        Specified by:
        extractValidDomains in interface ValidDomainExtractor<ValidWReplyExtractor.WSFederationEntityInfo>
        Parameters:
        entityInfo - The necessary information to retrieve the correct configuration.
        Returns:
        The collection of valid goto URL domains based on the provided configuration information. Empty when none are configured, null when they could not be read.