public class StandardCombiningAlgFactory extends BaseCombiningAlgFactory
Note that because this supports only the standard algorithms, this
factory does not allow the addition of any other algorithms. If you call
addAlgorithm
on an instance of this class, an exception
will be thrown. If you need a standard factory that is modifiable, you
should create a new BaseCombiningAlgFactory
(or some other
CombiningAlgFactory
) and configure it with the standard
algorithms using getStandardAlgorithms
(or, in the case of
BaseAttributeFactory
, by providing the datatypes in the
constructor).
Modifier and Type | Method and Description |
---|---|
void |
addAlgorithm(CombiningAlgorithm alg)
Throws an
UnsupportedOperationException since you are not
allowed to modify what a standard factory supports. |
static StandardCombiningAlgFactory |
getFactory()
Returns an instance of this factory.
|
static CombiningAlgFactory |
getNewFactory()
A convenience method that returns a new instance of a
CombiningAlgFactory that supports all of the standard
algorithms. |
static Set |
getStandardAlgorithms(String xacmlVersion)
Returns the identifiers supported for the given version of XACML.
|
createAlgorithm, getSupportedAlgorithms
addCombiningAlg, createCombiningAlg, getInstance, getInstance, registerFactory, setDefaultFactory
public static StandardCombiningAlgFactory getFactory()
CombiningAlgFactory
, ensuring quick
access to this factory.public static CombiningAlgFactory getNewFactory()
CombiningAlgFactory
that supports all of the standard
algorithms. The new factory allows adding support for new algorithms.
This method should only be used when you need a new, mutable instance
(eg, when you want to create a new factory that extends the set of
supported algorithms). In general, you should use
getFactory
which is more efficient and enforces a
singleton pattern.public static Set getStandardAlgorithms(String xacmlVersion) throws UnknownIdentifierException
xacmlVersion
- a standard XACML identifier string, as provided
in PolicyMetaData
Set
of identifiersUnknownIdentifierException
- if the version string is unknownpublic void addAlgorithm(CombiningAlgorithm alg)
UnsupportedOperationException
since you are not
allowed to modify what a standard factory supports.addAlgorithm
in class BaseCombiningAlgFactory
alg
- the combining algorithm to addUnsupportedOperationException
- alwaysCopyright © 2023 JBoss by Red Hat. All rights reserved.