public interface SignatureProperty extends XMLStructure
SignatureProperty
元素的表示 。
XML模式定义定义为:
<element name="SignatureProperty" type="ds:SignaturePropertyType"/> <complexType name="SignaturePropertyType" mixed="true"> <choice maxOccurs="unbounded"> <any namespace="##other" processContents="lax"/> <!-- (1,1) elements from (1, unbounded) namespaces --> </choice> <attribute name="Target" type="anyURI" use="required"/> <attribute name="Id" type="ID" use="optional"/> </complexType>
可以通过调用XMLSignatureFactory
类的newSignatureProperty
方法创建一个SignatureProperty
实例;
例如:
XMLSignatureFactory factory = XMLSignatureFactory.getInstance("DOM");
SignatureProperty property = factory.newSignatureProperty
(Collections.singletonList(content), "#Signature-1", "TimeStamp");
XMLSignatureFactory.newSignatureProperty(List, String, String)
, SignatureProperties
Modifier and Type | Method and Description |
---|---|
List |
getContent()
返回此SignatureProperty中包含的一个或多个 XMLStructure 的SignatureProperty 。
|
String |
getId()
返回此
SignatureProperty 的ID。
|
String |
getTarget()
返回此
SignatureProperty 的目标URI。
|
isFeatureSupported
String getTarget()
SignatureProperty
的目标URI。
SignatureProperty
(从不
null
)
String getId()
SignatureProperty
的ID。
SignatureProperty
的ID(或
null
如果未指定)
List getContent()
XMLStructure
的SignatureProperty
。
这些代表了关于生成XMLSignature
(即签名生成中使用的加密硬件的日期/时间戳或序列号)的附加信息。
XMLStructure
s
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.