public abstract class AlgorithmFactory
extends java.lang.Object
createFactory() to create an instance of such an algorithm factory implementation.
An algorithm factory is responsible to create instances of all kinds of algorithms needed by IXSIL in
case of signature verification. Algorithms are identified by the "Algorithm" attribute of the
corresponding XML element representative.| Constructor and Description |
|---|
AlgorithmFactory() |
| Modifier and Type | Method and Description |
|---|---|
abstract CanonicalizationAlgorithm |
createCanonicalizationAlgorithm(URI algorithmURI)
Creates a canonicalization algorithm object for the specified algorithm URI.
|
abstract DigestAlgorithm |
createDigestAlgorithm(URI algorithmURI)
Creates a digest algorithm object for the specified algorithm URI.
|
static AlgorithmFactory |
createFactory()
Creates an instance of the algorithm factory implementation class which is specified by the IXSIL
init property named
AlgorithmFactory.ImplementingClass. |
abstract SignatureAlgorithm |
createSignatureAlgorithm(URI algorithmURI)
Creates a signature algorithm object for the specified algorithm URI.
|
abstract Transform |
createTransform(URI algorithmURI)
Creates a transform object for the specified algorithm URI.
|
public abstract DigestAlgorithm createDigestAlgorithm(URI algorithmURI) throws AlgorithmFactoryException
algorithmURI - An URI used to identify the desired digest algorithm. This corresponds to the "URI"
attribute of the algorithm's XML representation.AlgorithmFactoryException - if creating the algorithm instance fails for any reason.public abstract CanonicalizationAlgorithm createCanonicalizationAlgorithm(URI algorithmURI) throws AlgorithmFactoryException
algorithmURI - An URI used to identify the desired canonicalization algorithm. This corresponds to
the "URI" attribute of the algorithm's XML representation.AlgorithmFactoryException - if creating the algorithm instance fails for any reason.public abstract SignatureAlgorithm createSignatureAlgorithm(URI algorithmURI) throws AlgorithmFactoryException
algorithmURI - An URI used to identify the desired signature algorithm. This corresponds to the
"URI" attribute of the algorithm's XML representation.AlgorithmFactoryException - if creating the algorithm instance fails for any reason.public abstract Transform createTransform(URI algorithmURI) throws AlgorithmFactoryException
algorithmURI - An URI used to identify the desired transform. This corresponds to the "URI"
attribute of the transform's XML representation.AlgorithmFactoryException - if creating the transform instance fails for any reason.public static AlgorithmFactory createFactory() throws AlgorithmFactoryException
AlgorithmFactory.ImplementingClass.AlgorithmFactoryException - if the implementation class cannot be instantiated.