|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.wso2.balana.combine.CombiningAlgFactory
org.wso2.balana.combine.BaseCombiningAlgFactory
org.wso2.balana.combine.StandardCombiningAlgFactory
public class StandardCombiningAlgFactory
This factory supports the standard set of algorithms specified in XACML 1.x and 2.0. It is the default factory used by the system, and imposes a singleton pattern insuring that there is only ever one instance of this class.
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).
Method Summary | |
---|---|
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. |
Methods inherited from class org.wso2.balana.combine.BaseCombiningAlgFactory |
---|
createAlgorithm, getSupportedAlgorithms |
Methods inherited from class org.wso2.balana.combine.CombiningAlgFactory |
---|
addCombiningAlg, createCombiningAlg, getInstance, getInstance, registerFactory, setDefaultFactory |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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 identifiers
UnknownIdentifierException
- 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 add
UnsupportedOperationException
- always
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |