public class AlgorithmFactoryDefaultImpl extends AlgorithmFactory
AlgorithmFactory interface. The associations
between the algorithm URIs (the key) and the corresponding algorithm implementation classes are managed
with the IXSIL algorithm properties: For a specified algorithm URI the full qualified class name of the
associated algorithm implementation class is looked up in this property file.| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
ALGID_PREFIX_
The prefix for IXSIL algorithm properties, which associate digest algorithms.
|
protected static java.lang.String |
C14N_PREFIX_
The prefix for IXSIL algorithm properties, which associate canonicalization algorithms.
|
protected static java.lang.String |
DIGEST_PREFIX_
The prefix for IXSIL algorithm properties, which associate digest algorithms.
|
protected static java.lang.String |
SIGNATURE_PREFIX_
The prefix for IXSIL algorithm properties, which associate signature algorithms.
|
protected static java.lang.String |
TRANSFORM_PREFIX_
The prefix for IXSIL algorithm properties, which associate transforms.
|
| Constructor and Description |
|---|
AlgorithmFactoryDefaultImpl() |
| Modifier and Type | Method and Description |
|---|---|
CanonicalizationAlgorithm |
createCanonicalizationAlgorithm(URI algorithmURI)
Creates a canonicalization algorithm object for the specified algorithm URI.
|
DigestAlgorithm |
createDigestAlgorithm(URI algorithmURI)
Creates a digest algorithm object for the specified algorithm URI.
|
SignatureAlgorithm |
createSignatureAlgorithm(URI algorithmURI)
Creates a signature algorithm object for the specified algorithm URI.
|
Transform |
createTransform(URI algorithmURI)
Creates a transform object for the specified algorithm URI.
|
createFactoryprotected static final java.lang.String DIGEST_PREFIX_
protected static final java.lang.String ALGID_PREFIX_
protected static final java.lang.String SIGNATURE_PREFIX_
protected static final java.lang.String C14N_PREFIX_
protected static final java.lang.String TRANSFORM_PREFIX_
public DigestAlgorithm createDigestAlgorithm(URI algorithmURI) throws AlgorithmFactoryException
createDigestAlgorithm in class AlgorithmFactoryalgorithmURI - 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 CanonicalizationAlgorithm createCanonicalizationAlgorithm(URI algorithmURI) throws AlgorithmFactoryException
createCanonicalizationAlgorithm in class AlgorithmFactoryalgorithmURI - 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 SignatureAlgorithm createSignatureAlgorithm(URI algorithmURI) throws AlgorithmFactoryException
createSignatureAlgorithm in class AlgorithmFactoryalgorithmURI - 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 Transform createTransform(URI algorithmURI) throws AlgorithmFactoryException
createTransform in class AlgorithmFactoryalgorithmURI - 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.