public class SignDir extends VirtualContainer
| Modifier and Type | Field and Description |
|---|---|
static String |
SealFileName
电子印章文件名
|
static String |
SignatureFileName
签名/签章 描述文件名
|
static String |
SignContainerPrefix
签名容器名称前缀
|
static String |
SignedValueFileName
签名值文件名
|
| Modifier and Type | Method and Description |
|---|---|
Integer |
getIndex()
获取该签名容器索引
|
String |
getIndexStr()
获取签名容器名称,用于兼容非规范的签名容器名称
|
Path |
getSeal()
获取 电子印章文件
|
Signature |
getSignature()
获取 签名/签章 描述文件
|
Path |
getSignedValue()
获取 签名值文件
|
SignDir |
setSeal(Path seal)
设置电子印章文件
|
SignDir |
setSignature(Signature signature)
设置 签名/签章 描述文件
|
SignDir |
setSignedValue(Path signedValue)
设置签名值文件
|
addRaw, clean, close, deleteFile, exist, exit, flush, flushContainerByName, flushFileByName, getAbsLoc, getContainer, getContainerName, getContainerPath, getFile, getFile, getObj, getObj, getParent, getSysAbsPath, obtainContainer, putFile, putFile, putFile, putFileWithPath, putObj, setParentpublic static final String SignContainerPrefix
public static final String SealFileName
public static final String SignatureFileName
public static final String SignedValueFileName
public SignDir(Path fullDir) throws IllegalArgumentException
IllegalArgumentExceptionpublic Integer getIndex()
NumberFormatException - 非规范的签名索引可能导致该问题public String getIndexStr()
public Signature getSignature() throws FileNotFoundException, org.dom4j.DocumentException
FileNotFoundException - 容器中不存在该文件org.dom4j.DocumentException - XML文件解析异常,可能是格式不正确public SignDir setSignature(Signature signature)
signature - 签名/签章 描述文件public Path getSeal() throws FileNotFoundException
FileNotFoundException - 文件不存在public SignDir setSeal(Path seal) throws IOException
seal - 电子印章文件IOException - 文件复制过程中异常public Path getSignedValue() throws FileNotFoundException
FileNotFoundException - 文件不存在public SignDir setSignedValue(Path signedValue) throws IOException
signedValue - 签名值文件IOException - 文件复制过程中异常Copyright © 2026. All rights reserved.