public abstract class AbstractXmlSignatureProcessor extends Object implements XmlSignatureProcessor
Constructor and Description |
---|
AbstractXmlSignatureProcessor() |
Modifier and Type | Method and Description |
---|---|
protected Document |
convertDocument(InputStream input)
转换流为XML对象
|
void |
createXmlSignature(String userId,
InputStream input,
OutputStream output)
生成XML数字签名
|
void |
createXmlSignature(String userId,
String sourceXmlPath,
OutputStream output)
生成XML数字签名
|
protected abstract void |
createXmlSignature(XmlSignatureConfig config,
Document doc,
OutputStream output)
生成XML数字签名(可以有不同底层实现)
|
XmlSignatureManager |
getXmlSignatureManager() |
void |
setXmlSignatureManager(XmlSignatureManager xmlSignatureManager) |
boolean |
validateXmlSignature(String userId,
InputStream input)
验证XML数字签名
|
boolean |
validateXmlSignature(String userId,
String signedXmlPath)
验证XML数字签名
|
protected abstract boolean |
validateXmlSignature(XmlSignatureConfig config,
Document doc)
验证XML数字签名(可以有不同底层实现)
|
public XmlSignatureManager getXmlSignatureManager()
public void setXmlSignatureManager(XmlSignatureManager xmlSignatureManager)
public void createXmlSignature(String userId, String sourceXmlPath, OutputStream output) throws XMLSignatureException
XmlSignatureProcessor
createXmlSignature
in interface XmlSignatureProcessor
XMLSignatureException
public void createXmlSignature(String userId, InputStream input, OutputStream output) throws XMLSignatureException
XmlSignatureProcessor
createXmlSignature
in interface XmlSignatureProcessor
XMLSignatureException
public boolean validateXmlSignature(String userId, String signedXmlPath) throws XMLSignatureException
XmlSignatureProcessor
validateXmlSignature
in interface XmlSignatureProcessor
XMLSignatureException
public boolean validateXmlSignature(String userId, InputStream input) throws XMLSignatureException
XmlSignatureProcessor
validateXmlSignature
in interface XmlSignatureProcessor
XMLSignatureException
protected abstract void createXmlSignature(XmlSignatureConfig config, Document doc, OutputStream output) throws XMLSignatureException
config
- doc
- output
- XMLSignatureException
protected abstract boolean validateXmlSignature(XmlSignatureConfig config, Document doc) throws XMLSignatureException
config
- doc
- XMLSignatureException
protected Document convertDocument(InputStream input) throws Exception
input
- Exception
Copyright © 2006–2018 TinyGroup. All rights reserved.