Interface XMLSignatureContext
- All Known Implementing Classes:
DefaultXMLSignatureContext
public interface XMLSignatureContext
The XMLSignatureContext interface provides a standard set of functions that can be used to determine
the state of a XML document before and after it was signed such as:
- Extract the version of the document that was signed by a particular signature
- Determine if a signature covers the whole document
- Author:
- Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
-
Method Summary
Modifier and TypeMethodDescriptionGet the XML documentbyte[]
Returns the bytes of the signed documentgetSignatureData
(Element signature) Parse and extract signature data from the signature
-
Method Details
-
getSignatureData
Parse and extract signature data from the signature- Parameters:
signature
- The signature element- Returns:
- signature data
- Throws:
IOException
- on error parsing the signature and extracting the necessary information
-
getDocumentBytes
byte[] getDocumentBytes()Returns the bytes of the signed document- Returns:
- bytes of the signed document
-
getDocument
Document getDocument()Get the XML document- Returns:
- XML document
-