Class SwedishEidDiscoveryMatchingRules

    • Constructor Detail

      • SwedishEidDiscoveryMatchingRules

        public SwedishEidDiscoveryMatchingRules()
    • Method Detail

      • isServiceEntityMatch

        public static boolean isServiceEntityMatch​(Collection<String> consumingService,
                                                   Collection<String> providingService)
        Determines if there is a match regarding service entity categories declared by a consuming service and a providing service. This is the first condition (out of three) of the algorithm defined in section 1.4 of Entity Categories for the Swedish eID Framework.
        Parameters:
        consumingService - the entity categories declared by the consuming service (SP)
        providingService - the entity categories declared by the providing service (IdP)
        Returns:
        true if the providing service declares at least one of the service entity categories declared by the consuming service and false otherwise
      • isServiceContractMatch

        public static boolean isServiceContractMatch​(Collection<String> consumingService,
                                                     Collection<String> providingService)
        Determines if there is a match regarding service contract categories declared by a consuming service and a providing service. This is the second condition (out of threee) of the algorithm defined in section 1.4 of Entity Categories for the Swedish eID Framework.
        Parameters:
        consumingService - the entity categories declared by the consuming service (SP)
        providingService - the entity categories declared by the providing service (IdP)
        Returns:
        if the providing service declares at least one service contract category and the consuming service declares at least one of those declared identifiers true is returned
      • isServicePropertyMatch

        public static boolean isServicePropertyMatch​(Collection<String> consumingService,
                                                     Collection<String> providingService)
        Determines if there is a match regarding service property categories declared by a consuming service and a providing service. This is the third condition (out of threee) of the algorithm defined in section 1.4 of Entity Categories for the Swedish eID Framework.
        Parameters:
        consumingService - the entity categories declared by the consuming service (SP)
        providingService - the entity categories declared by the providing service (IdP)
        Returns:
        if all of the Service Property identifiers declared by the consuming service is declared by the providing service true is returned