public interface Manifest extends XMLStructure
Manifest
元素的表示 。
XML模式定义定义为:
<element name="Manifest" type="ds:ManifestType"/> <complexType name="ManifestType"> <sequence> <element ref="ds:Reference" maxOccurs="unbounded"/> </sequence> <attribute name="Id" type="ID" use="optional"/> </complexType>
可以通过调用XMLSignatureFactory
类的newManifest
方法之一创建一个Manifest
实例;
例如:
XMLSignatureFactory factory = XMLSignatureFactory.getInstance("DOM");
List references = Collections.singletonList(factory.newReference
("#reference-1", DigestMethod.SHA1));
Manifest manifest = factory.newManifest(references, "manifest-1");
XMLSignatureFactory.newManifest(List)
,
XMLSignatureFactory.newManifest(List, String)
Modifier and Type | Field and Description |
---|---|
static String |
TYPE
URI标识 Manifest 元件(这可以被指定为值type 所述的参数Reference 类来识别引用的类型)。
|
Modifier and Type | Method and Description |
---|---|
String |
getId()
返回此
Manifest 的ID。
|
List |
getReferences()
返回此Manifest中包含的一个或多个 Reference 的Manifest 。
|
isFeatureSupported
static final String TYPE
Manifest
元件(这可以被指定为值type
所述的参数Reference
类来识别引用的类型)。
String getId()
Manifest
的ID。
Manifest
的ID(或
null
如果未指定)
List getReferences()
Reference
的Manifest
。
Reference
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.