Interface CombiningAlgRegistry

    • Method Detail

      • getAlgorithm

        <T extends DecidableCombiningAlg<T> getAlgorithm​(String algId,
                                                           Class<T> combinedElementType)
                                                    throws IllegalArgumentException
        Tries to return the correct combining algorithm based on the given algorithm ID.
        Parameters:
        algId - the identifier by which the algorithm is known

        WARNING: java.net.URI cannot be used here for XACML category and ID, because not equivalent to XML schema anyURI type. Spaces are allowed in XSD anyURI [1], not in java.net.URI for example. That's why we use String instead.

        [1] http://www.w3.org/TR/xmlschema-2/#anyURI

        combinedElementType - type of combined element
        Returns:
        a combining algorithm
        Throws:
        IllegalArgumentException - algId is invalid (not registered in this registry)