
Returns a
TransformService that supports the specified
algorithm URI (ex:
Transform.XPATH2) and mechanism type
(ex: DOM).
This method uses the standard JCA provider lookup mechanism to
locate and instantiate a TransformService implementation
of the desired algorithm and MechanismType service
attribute. It traverses the list of registered security
Providers, starting with the most preferred
Provider. A new TransformService object
from the first Provider that supports the specified
algorithm and mechanism type is returned.
Note that the list of registered providers may be retrieved via
the Security.getProviders() method.
Returns:
a new TransformService
Parameters:
- algorithm - the URI of the algorithm
- mechanismType - the type of the XML processing mechanism and
representation
Throws:
- NullPointerException - if algorithm or
mechanismType is null
- NoSuchAlgorithmException - if no Provider supports a
TransformService implementation for the specified
algorithm and mechanism type
See Also:
Provider,