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
(检查 xml 签名的辅助方法)
|
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 read
(java.io.IOException - 如果 xml 签名不存在或无法读取)
org.apache.xmlbeans.XmlException
- if the xml signature is malformed
(org.apache.xmlbeans.XmlException - 如果 xml 签名格式错误)
public boolean validate()
EncryptedDocumentException
- if the signature can't be extracted or if its malformed
(EncryptedDocumentException - 如果无法提取签名或其格式错误)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.