public abstract class Algorithm
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected URI |
uri_
The name URI associated with this algorithm.
|
| Constructor and Description |
|---|
Algorithm() |
| Modifier and Type | Method and Description |
|---|---|
URI |
getURI()
Gets the URI, which identifies the algorithm.
|
void |
setParameters(org.w3c.dom.Element algorithmElement)
Allows the specification of parameters for this algorithm.
|
void |
setURI(URI uri)
Set the URI, which identifies the algorithm.
|
abstract org.w3c.dom.Element |
toElement(org.w3c.dom.Document signatureDOMDoc)
Returns the DOM element representation of the algorithm.
|
protected URI uri_
public URI getURI()
public void setURI(URI uri)
uri - The URI identifying the algorithm. Must not be null.public void setParameters(org.w3c.dom.Element algorithmElement)
throws AlgorithmException
algorithmElement - The DOM element representation of the algorithm, as it will be found by IXSIL
in the XML signature.AlgorithmException - if the algorithm cannot interpret the specified parameter.public abstract org.w3c.dom.Element toElement(org.w3c.dom.Document signatureDOMDoc)
throws AlgorithmException
signatureDOMDoc - The DOM document which should be used to create necessary DOM nodes.AlgorithmException - if computing the DOM element representation fails for any reason.