|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.security.xacml.sunxacml.combine.CombiningAlgFactory
public abstract class CombiningAlgFactory
Provides a factory mechanism for installing and retrieving combining algorithms.
| Constructor Summary | |
|---|---|
protected |
CombiningAlgFactory()
Default constructor. |
| Method Summary | |
|---|---|
abstract void |
addAlgorithm(CombiningAlgorithm alg)
Adds a combining algorithm to the factory. |
static void |
addCombiningAlg(CombiningAlgorithm alg)
Deprecated. As of version 1.2, replaced by addAlgorithm(CombiningAlgorithm).
The new factory system requires you to get a factory
instance and then call the non-static methods on that
factory. The static versions of these methods have been
left in for now, but are slower and will be removed in
a future version. |
abstract CombiningAlgorithm |
createAlgorithm(URI algId)
Tries to return the correct combinging algorithm based on the given algorithm ID. |
static CombiningAlgorithm |
createCombiningAlg(URI algId)
Deprecated. As of version 1.2, replaced by createAlgorithm(URI).
The new factory system requires you to get a factory
instance and then call the non-static methods on that
factory. The static versions of these methods have been
left in for now, but are slower and will be removed in
a future version. |
static CombiningAlgFactory |
getInstance()
Returns the default factory. |
static CombiningAlgFactory |
getInstance(String identifier)
Returns a factory based on the given identifier. |
abstract Set |
getSupportedAlgorithms()
Returns the algorithm identifiers supported by this factory. |
static void |
registerFactory(String identifier,
CombiningAlgFactoryProxy proxy)
Registers the given factory proxy with the given identifier. |
static void |
setDefaultFactory(CombiningAlgFactoryProxy proxy)
Sets the default factory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected CombiningAlgFactory()
| Method Detail |
|---|
public static final CombiningAlgFactory getInstance()
CombiningAlgFactory
public static final CombiningAlgFactory getInstance(String identifier)
throws UnknownIdentifierException
identifier - the identifier for a factory
CombiningAlgFactory
UnknownIdentifierException - if the given identifier isn't
registeredpublic static final void setDefaultFactory(CombiningAlgFactoryProxy proxy)
proxy - the CombiningAlgFactoryProxy to set as the
new default factory proxy
public static final void registerFactory(String identifier,
CombiningAlgFactoryProxy proxy)
throws IllegalArgumentException
identifier - the identifier for the proxyproxy - the CombiningAlgFactoryProxy to register with
the given identifier
IllegalArgumentException - if the identifier is already usedpublic abstract void addAlgorithm(CombiningAlgorithm alg)
alg - the combining algorithm to add
IllegalArgumentException - if the algorithm is already registeredpublic static void addCombiningAlg(CombiningAlgorithm alg)
addAlgorithm(CombiningAlgorithm).
The new factory system requires you to get a factory
instance and then call the non-static methods on that
factory. The static versions of these methods have been
left in for now, but are slower and will be removed in
a future version.
alg - the combining algorithm to add
IllegalArgumentException - if the algorithm is already registeredpublic abstract Set getSupportedAlgorithms()
Set of Strings
public abstract CombiningAlgorithm createAlgorithm(URI algId)
throws UnknownIdentifierException
algId - the identifier by which the algorithm is known
UnknownIdentifierException - algId is unknown
public static CombiningAlgorithm createCombiningAlg(URI algId)
throws UnknownIdentifierException
createAlgorithm(URI).
The new factory system requires you to get a factory
instance and then call the non-static methods on that
factory. The static versions of these methods have been
left in for now, but are slower and will be removed in
a future version.
algId - the identifier by which the algorithm is known
UnknownIdentifierException - algId is unknown
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||