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
Provides content model support for the
dsig11:X509Digest
element.-
Field Summary
Fields inherited from class org.apache.xml.security.utils.ElementProxy
baseURI, LOG
-
Constructor Summary
ConstructorsConstructorDescriptionXMLX509Digest
(Document doc, byte[] digestBytes, String algorithmURI) Constructor XMLX509DigestXMLX509Digest
(Document doc, X509Certificate x509certificate, String algorithmURI) Constructor XMLX509DigestXMLX509Digest
(Element element, String baseURI) Constructor XMLX509Digest -
Method Summary
Modifier and TypeMethodDescriptionMethod getAlgorithmMethod getAlgorithmAttrReturns the localname of the Elements of the sub-class.byte[]
Method getDigestBytesstatic byte[]
getDigestBytesFromCert
(X509Certificate cert, String algorithmURI) Method getDigestBytesFromCertMethods 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 Details
-
XMLX509Digest
Constructor XMLX509Digest- Parameters:
element
-baseURI
-- Throws:
XMLSecurityException
-
XMLX509Digest
Constructor XMLX509Digest- Parameters:
doc
-digestBytes
-algorithmURI
-
-
XMLX509Digest
public XMLX509Digest(Document doc, X509Certificate x509certificate, String algorithmURI) throws XMLSecurityException Constructor XMLX509Digest- Parameters:
doc
-x509certificate
-algorithmURI
-- Throws:
XMLSecurityException
-
-
Method Details
-
getAlgorithmAttr
Method getAlgorithmAttr- Returns:
- the Algorithm attribute
-
getAlgorithm
Method getAlgorithm- Returns:
- Algorithm string
-
getDigestBytes
Method getDigestBytes- Returns:
- the digestbytes
- Throws:
XMLSecurityException
-
getDigestBytesFromCert
public static byte[] getDigestBytesFromCert(X509Certificate cert, String algorithmURI) throws XMLSecurityException Method getDigestBytesFromCert- Parameters:
cert
-algorithmURI
-- Returns:
- digest bytes from the given certificate
- Throws:
XMLSecurityException
-
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.
-