Interface CombiningAlgRegistry
-
- All Superinterfaces:
PdpExtensionRegistry<CombiningAlg<?>>
public interface CombiningAlgRegistry extends PdpExtensionRegistry<CombiningAlg<?>>
Provides a registry mechanism for adding and retrieving combining algorithms.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ow2.authzforce.core.pdp.api.PdpExtensionRegistry
PdpExtensionRegistry.PdpExtensionComparator<E extends PdpExtension>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T extends Decidable>
CombiningAlg<T>getAlgorithm(String algId, Class<T> combinedElementType)
Tries to return the correct combining algorithm based on the given algorithm ID.-
Methods inherited from interface org.ow2.authzforce.core.pdp.api.PdpExtensionRegistry
getExtension, getExtensions
-
-
-
-
Method Detail
-
getAlgorithm
<T extends Decidable> CombiningAlg<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 knownWARNING: 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)
-
-