public class Signature extends OFDElement
18.1 签名列表 图 85 表 66
proxy| 限定符和类型 | 方法和说明 |
|---|---|
ST_Loc |
getBaseLoc()
【必选 属性】
获取 指向包内的签名描述文件
|
String |
getID()
【必选 属性】
获取 签名或签章的标识
推荐使用“sNNN”的编码方式,NNN从1开始
|
String |
getRelative()
【可选 属性 OFD 2.0】
获取 基于的签名ID
此签名基于签名标识,一旦签名标注了该属性,则验证时应同时验证“基”签名。
|
SigType |
getType()
【可选 属性】
获取 签名节点的类型
可选值参考
SigType
默认值为Seal |
Signature |
setBaseLoc(ST_Loc baseLoc)
【必选 属性】
设置 指向包内的签名描述文件
|
Signature |
setID(String id)
【必选 属性】
设置 签名或签章的标识
推荐使用“sNNN”的编码方式,NNN从1开始
|
Signature |
setRelative(String id)
【可选 属性 OFD 2.0】
设置 基于的签名ID
此签名基于签名标识,一旦签名标注了该属性,则验证时应同时验证“基”签名。
|
Signature |
setType(SigType type)
【可选 属性】
设置 签名节点的类型
可选值参考
SigType
默认值为Seal |
addOFDEntity, getElements, getInstance, getObjID, getOFDElement, getOFDElement, getOFDElements, getOFDElementText, getQualifiedName, removeAll, removeAttr, removeOFDElemByNames, set, setObjID, setObjID, setOFDEntity, setOFDNameaccept, add, add, add, add, add, add, add, add, add, addAttribute, addAttribute, addCDATA, addComment, addElement, addElement, addElement, addEntity, additionalNamespaces, addNamespace, addProcessingInstruction, addProcessingInstruction, addText, appendAttributes, appendContent, asXML, asXPathResult, attribute, attribute, attribute, attributeCount, attributeIterator, attributes, attributeValue, attributeValue, attributeValue, attributeValue, clearContent, clone, content, createCopy, createCopy, createCopy, createXPath, declaredNamespaces, detach, element, element, elementByID, elementIterator, elementIterator, elementIterator, elements, elements, elements, elementText, elementText, elementTextTrim, elementTextTrim, equals, getData, getDocument, getName, getNamespace, getNamespaceForPrefix, getNamespaceForURI, getNamespacePrefix, getNamespacesForURI, getNamespaceURI, getNodeType, getNodeTypeName, getParent, getPath, getPath, getProxy, getQName, getQName, getStringValue, getText, getTextTrim, getUniquePath, getUniquePath, getXPathResult, hasContent, hasMixedContent, indexOf, isReadOnly, isRootElement, isTextOnly, matches, node, nodeCount, nodeIterator, normalize, numberValueOf, processingInstruction, processingInstructions, processingInstructions, remove, remove, remove, remove, remove, remove, remove, remove, remove, removeProcessingInstruction, selectNodes, selectNodes, selectNodes, selectObject, selectSingleNode, setAttributes, setAttributeValue, setAttributeValue, setContent, setData, setDocument, setName, setParent, setProcessingInstructions, setProxy, setQName, setText, supportsParent, valueOf, writepublic Signature setID(String id)
推荐使用“sNNN”的编码方式,NNN从1开始
id - 签名或签章的标识public String getID()
推荐使用“sNNN”的编码方式,NNN从1开始
public Signature setType(SigType type)
可选值参考SigType
默认值为Seal
type - 签名节点的类型public Signature setRelative(String id)
此签名基于签名标识,一旦签名标注了该属性,则验证时应同时验证“基”签名。
id - 基于的签名ID,如果为null表示需要删除该属性。public String getRelative()
此签名基于签名标识,一旦签名标注了该属性,则验证时应同时验证“基”签名。
public Signature setBaseLoc(ST_Loc baseLoc)
baseLoc - 指向包内的签名描述文件public ST_Loc getBaseLoc()
Copyright © 2021. All rights reserved.