public class XMLX509Digest extends Signature11ElementProxy implements XMLX509DataContent
dsig11:X509Digest
element.baseURI, LOG
Constructor and Description |
---|
XMLX509Digest(Document doc,
byte[] digestBytes,
String algorithmURI)
Constructor XMLX509Digest
|
XMLX509Digest(Document doc,
X509Certificate x509certificate,
String algorithmURI)
Constructor XMLX509Digest
|
XMLX509Digest(Element element,
String baseURI)
Constructor XMLX509Digest
|
Modifier and Type | Method and Description |
---|---|
String |
getAlgorithm()
Method getAlgorithm
|
Attr |
getAlgorithmAttr()
Method getAlgorithmAttr
|
String |
getBaseLocalName()
Returns the localname of the Elements of the sub-class.
|
byte[] |
getDigestBytes()
Method getDigestBytes
|
static byte[] |
getDigestBytesFromCert(X509Certificate cert,
String algorithmURI)
Method getDigestBytesFromCert
|
getBaseNamespace
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
public XMLX509Digest(Element element, String baseURI) throws XMLSecurityException
element
- baseURI
- XMLSecurityException
public XMLX509Digest(Document doc, byte[] digestBytes, String algorithmURI)
doc
- digestBytes
- algorithmURI
- public XMLX509Digest(Document doc, X509Certificate x509certificate, String algorithmURI) throws XMLSecurityException
doc
- x509certificate
- algorithmURI
- XMLSecurityException
public Attr getAlgorithmAttr()
public String getAlgorithm()
public byte[] getDigestBytes() throws XMLSecurityException
XMLSecurityException
public static byte[] getDigestBytesFromCert(X509Certificate cert, String algorithmURI) throws XMLSecurityException
cert
- algorithmURI
- XMLSecurityException
public String getBaseLocalName()
getBaseLocalName
in class ElementProxy
Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.