public class XMLSignatureElement extends java.lang.Object implements IXMLEncodable
FIELD_XML_ELEMENT_CONTAINER_NAME, FIELD_XML_ELEMENT_NAME, XML_ATTR_ID, XML_ATTR_LANGUAGE, XML_ATTR_VERSION
Modifier and Type | Method and Description |
---|---|
boolean |
addCertificate(JAPCertificate a_certificate)
Adds a certificate to the signature.
|
void |
clearCertificates()
Deletes all certificates from this signature.
|
boolean |
containsCertificate(JAPCertificate a_certificate)
Returns if the specified certificate is already contained in this signature element.
|
int |
countCertificates()
Returns the number of certificates appended to this signature.
|
CertPath |
getCertPath() |
java.lang.String |
getDigestMethod()
Returns the digest method that was used for creating this signature.
|
java.lang.String |
getReferenceURI()
Returns the reference attribute URI.
|
java.lang.String |
getSignatureMethod()
Returns the signature method that was used for creating this signature.
|
boolean |
removeCertificate(JAPCertificate a_certificate)
Removes a certificate from this signature.
|
org.w3c.dom.Element |
toXmlElement(org.w3c.dom.Document a_doc)
Creates a new XML element from this signature.
|
boolean |
verify(org.w3c.dom.Node a_node,
int a_documentType,
java.util.Vector a_directCertPaths)
Verifies this Signature Element with either the appended certs or
with the directCertPaths, if there are no appended certs.
|
boolean |
verifyFast(org.w3c.dom.Node a_node,
IMyPublicKey a_publicKey) |
public boolean verifyFast(org.w3c.dom.Node a_node, IMyPublicKey a_publicKey) throws XMLParseException
XMLParseException
public boolean verify(org.w3c.dom.Node a_node, int a_documentType, java.util.Vector a_directCertPaths) throws XMLParseException
a_node
- a_documentType
- a_directCertPaths
- XMLParseException
public java.lang.String getSignatureMethod()
public java.lang.String getDigestMethod()
public java.lang.String getReferenceURI()
public CertPath getCertPath()
public boolean containsCertificate(JAPCertificate a_certificate)
a_certificate
- an X509 certificatepublic int countCertificates()
public void clearCertificates()
public boolean removeCertificate(JAPCertificate a_certificate)
a_certificate
- an X509 certificatepublic boolean addCertificate(JAPCertificate a_certificate)
a_certificate
- JAPCertificatepublic org.w3c.dom.Element toXmlElement(org.w3c.dom.Document a_doc)
toXmlElement
in interface IXMLEncodable
a_doc
- an XML documentCopyright © 2023. All rights reserved.