Package org.apache.poi.poifs.crypt.dsig
Class SignaturePart
java.lang.Object
org.apache.poi.poifs.crypt.dsig.SignaturePart
-
Method Summary
Modifier and TypeMethodDescriptionorg.w3.x2000.x09.xmldsig.SignatureDocument
Helper method for examining the xml signatureboolean
validate()
-
Method Details
-
getPackagePart
- Returns:
- the package part containing the signature
-
getSigner
- Returns:
- the signer certificate
-
getCertChain
- Returns:
- the certificate chain of the signer
-
getSignatureDocument
public org.w3.x2000.x09.xmldsig.SignatureDocument getSignatureDocument() throws IOException, org.apache.xmlbeans.XmlExceptionHelper method for examining the xml signature- Returns:
- the xml signature document
- Throws:
IOException
- if the xml signature doesn't exist or can't be readorg.apache.xmlbeans.XmlException
- if the xml signature is malformed
-
validate
public boolean validate()- Returns:
- true, when the xml signature is valid, false otherwise
- Throws:
EncryptedDocumentException
- if the signature can't be extracted or if its malformed
-