public class SignaturePart
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
java.util.List<java.security.cert.X509Certificate> |
getCertChain() |
PackagePart |
getPackagePart() |
org.w3.x2000.x09.xmldsig.SignatureDocument |
getSignatureDocument()
Helper method for examining the xml signature
|
java.security.cert.X509Certificate |
getSigner() |
boolean |
validate() |
public PackagePart getPackagePart()
public java.security.cert.X509Certificate getSigner()
public java.util.List<java.security.cert.X509Certificate> getCertChain()
public org.w3.x2000.x09.xmldsig.SignatureDocument getSignatureDocument() throws java.io.IOException, org.apache.xmlbeans.XmlException
java.io.IOException
- if the xml signature doesn't exist or can't be readorg.apache.xmlbeans.XmlException
- if the xml signature is malformedpublic boolean validate()
EncryptedDocumentException
- if the signature can't be extracted or if its malformedCopyright 2021 The Apache Software Foundation or its licensors, as applicable.