Class Algorithm
- java.lang.Object
-
- org.apache.xml.security.utils.ElementProxy
-
- org.apache.xml.security.algorithms.Algorithm
-
- Direct Known Subclasses:
MessageDigestAlgorithm
,SignatureAlgorithm
public abstract class Algorithm extends ElementProxy
The Algorithm class which stores the Algorithm URI as a string.
-
-
Field Summary
-
Fields inherited from class org.apache.xml.security.utils.ElementProxy
_baseURI, _constructionElement, _doc, _state, MODE_CREATE, MODE_DECRYPT, MODE_ENCRYPT, MODE_PROCESS, MODE_SIGN, MODE_UNKNOWN, MODE_VERIFY
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAlgorithmURI()
Method getAlgorithmURIprotected void
setAlgorithmURI(java.lang.String algorithmURI)
Sets the algorithm's URI as used in the signature.-
Methods inherited from class org.apache.xml.security.utils.ElementProxy
addBase64Element, addBase64Text, addBigIntegerElement, addText, addTextElement, createElementForFamily, getBaseLocalName, getBaseNamespace, getBaseURI, getBigIntegerFromChildElement, getBytesFromChildElement, getBytesFromTextChild, getDefaultPrefix, getDocument, getElement, getElementPlusReturns, getTextFromChildElement, getTextFromTextChild, guaranteeThatElementInCorrectSpace, length, setDefaultPrefix, setElement, setXPathNamespaceContext
-
-
-
-
Constructor Detail
-
Algorithm
public Algorithm(org.w3c.dom.Document doc, java.lang.String algorithmURI)
- Parameters:
doc
-algorithmURI
- is the URI of the algorithm as String
-
Algorithm
public Algorithm(org.w3c.dom.Element element, java.lang.String BaseURI) throws XMLSecurityException
Constructor Algorithm- Parameters:
element
-BaseURI
-- Throws:
XMLSecurityException
-
-
Method Detail
-
getAlgorithmURI
public java.lang.String getAlgorithmURI()
Method getAlgorithmURI- Returns:
- The URI of the alogrithm
-
setAlgorithmURI
protected void setAlgorithmURI(java.lang.String algorithmURI)
Sets the algorithm's URI as used in the signature.- Parameters:
algorithmURI
- is the URI of the algorithm as String
-
-