Class XMLX509Digest
- java.lang.Object
-
- org.apache.xml.security.utils.ElementProxy
-
- org.apache.xml.security.utils.Signature11ElementProxy
-
- org.apache.xml.security.keys.content.x509.XMLX509Digest
-
- All Implemented Interfaces:
XMLX509DataContent
public class XMLX509Digest extends Signature11ElementProxy implements XMLX509DataContent
Provides content model support for thedsig11:X509Digest
element.
-
-
Field Summary
-
Fields inherited from class org.apache.xml.security.utils.ElementProxy
baseURI, LOG
-
-
Constructor Summary
Constructors Constructor Description XMLX509Digest(org.w3c.dom.Document doc, byte[] digestBytes, java.lang.String algorithmURI)
Constructor XMLX509DigestXMLX509Digest(org.w3c.dom.Document doc, java.security.cert.X509Certificate x509certificate, java.lang.String algorithmURI)
Constructor XMLX509DigestXMLX509Digest(org.w3c.dom.Element element, java.lang.String baseURI)
Constructor XMLX509Digest
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAlgorithm()
Method getAlgorithmorg.w3c.dom.Attr
getAlgorithmAttr()
Method getAlgorithmAttrjava.lang.String
getBaseLocalName()
Returns the localname of the Elements of the sub-class.byte[]
getDigestBytes()
Method getDigestBytesstatic byte[]
getDigestBytesFromCert(java.security.cert.X509Certificate cert, java.lang.String algorithmURI)
Method getDigestBytesFromCert-
Methods inherited from class org.apache.xml.security.utils.Signature11ElementProxy
getBaseNamespace
-
Methods inherited from class org.apache.xml.security.utils.ElementProxy
addBase64Element, addBase64Text, addBigIntegerElement, addReturnToSelf, addText, addTextElement, appendOther, appendSelf, appendSelf, createElementForFamily, createElementForFamilyLocal, createText, getBaseURI, getBigIntegerFromChildElement, getBytesFromTextChild, getDefaultPrefix, getDocument, getElement, getElementPlusReturns, getFirstChild, getLocalAttribute, getTextFromChildElement, getTextFromTextChild, length, registerDefaultPrefixes, setDefaultPrefix, setDocument, setElement, setElement, setLocalAttribute, setLocalIdAttribute, setXPathNamespaceContext
-
-
-
-
Constructor Detail
-
XMLX509Digest
public XMLX509Digest(org.w3c.dom.Element element, java.lang.String baseURI) throws XMLSecurityException
Constructor XMLX509Digest- Parameters:
element
-baseURI
-- Throws:
XMLSecurityException
-
XMLX509Digest
public XMLX509Digest(org.w3c.dom.Document doc, byte[] digestBytes, java.lang.String algorithmURI)
Constructor XMLX509Digest- Parameters:
doc
-digestBytes
-algorithmURI
-
-
XMLX509Digest
public XMLX509Digest(org.w3c.dom.Document doc, java.security.cert.X509Certificate x509certificate, java.lang.String algorithmURI) throws XMLSecurityException
Constructor XMLX509Digest- Parameters:
doc
-x509certificate
-algorithmURI
-- Throws:
XMLSecurityException
-
-
Method Detail
-
getAlgorithmAttr
public org.w3c.dom.Attr getAlgorithmAttr()
Method getAlgorithmAttr- Returns:
- the Algorithm attribute
-
getAlgorithm
public java.lang.String getAlgorithm()
Method getAlgorithm- Returns:
- Algorithm string
-
getDigestBytes
public byte[] getDigestBytes() throws XMLSecurityException
Method getDigestBytes- Returns:
- the digestbytes
- Throws:
XMLSecurityException
-
getDigestBytesFromCert
public static byte[] getDigestBytesFromCert(java.security.cert.X509Certificate cert, java.lang.String algorithmURI) throws XMLSecurityException
Method getDigestBytesFromCert- Parameters:
cert
-algorithmURI
-- Returns:
- digest bytes from the given certificate
- Throws:
XMLSecurityException
-
getBaseLocalName
public java.lang.String getBaseLocalName()
Returns the localname of the Elements of the sub-class.- Specified by:
getBaseLocalName
in classElementProxy
- Returns:
- the localname of the Elements of the sub-class.
-
-