181 lines
8.2 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<div class="header">
<div class="subTitle">
compact3
</div>
<div class="subTitle">
javax.xml.crypto.dsig
</div>
<h2 class="title" title="Interface Manifest">Interface Manifest</h2>
</div><div class="contentContainer">
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>
All Superinterfaces:
</dt>
<dd>
<span><a href="../../../../javax/xml/crypto/XMLStructure.html" title="javax.xml.crypto中的接口">XMLStructure</a></span>
</dd>
</dl>
<hr/> <br/> <pre>public interface <span class="typeNameLabel">Manifest</span>
extends <a href="../../../../javax/xml/crypto/XMLStructure.html" title="interface in javax.xml.crypto">XMLStructure</a></pre>
<div class="block">
<span>W3C Recommendation for XML-Signature Syntax and Processing中定义的XML <code>Manifest</code>元素的<a href="http://www.w3.org/TR/xmldsig-core/">表示</a></span>
<span>XML模式定义定义为</span>
<pre> <span><code> &lt;element name="Manifest" type="ds:ManifestType"/&gt; &lt;complexType name="ManifestType"&gt; &lt;sequence&gt; &lt;element ref="ds:Reference" maxOccurs="unbounded"/&gt; &lt;/sequence&gt; &lt;attribute name="Id" type="ID" use="optional"/&gt; &lt;/complexType&gt; </code></span> </pre>
<span>可以通过调用<a href="../../../../javax/xml/crypto/dsig/XMLSignatureFactory.html" title="javax.xml.crypto.dsig中的类"><code>XMLSignatureFactory</code></a>类的<a href="../../../../javax/xml/crypto/dsig/XMLSignatureFactory.html#newManifest-java.util.List-"><code>newManifest</code></a>方法之一创建一个<code>Manifest</code>实例;</span>
<span>例如:</span>
<pre> <span>XMLSignatureFactory factory = XMLSignatureFactory.getInstance("DOM");
List references = Collections.singletonList(factory.newReference
("#reference-1", DigestMethod.SHA1));
Manifest manifest = factory.newManifest(references, "manifest-1");</span> </pre>
</div>
<dl>
<dt>
<span class="simpleTagLabel">从以下版本开始:</span>
</dt>
<dd>
1.6
</dd>
<dt>
<span class="seeLabel">另请参见:</span>
</dt>
<dd>
<a href="../../../../javax/xml/crypto/dsig/XMLSignatureFactory.html#newManifest-java.util.List-"><code>XMLSignatureFactory.newManifest(List)</code></a>
<a href="../../../../javax/xml/crypto/dsig/XMLSignatureFactory.html#newManifest-java.util.List-java.lang.String-"><code>XMLSignatureFactory.newManifest(List, String)</code></a>
</dd>
</dl> </li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.summary">
<!-- --> </a> <h3>Field Summary</h3>
<table border="0" cellpadding="3" cellspacing="0" class="memberSummary" summary="Field Summary table, listing fields, and an explanation">
<caption>
<span>Fields</span>
<span class="tabEnd"> </span>
</caption>
<tbody>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../java/lang/String.html" title="class in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/xml/crypto/dsig/Manifest.html#TYPE">TYPE</a></span></code>
<div class="block">
<span>URI标识<code>Manifest</code>元件(这可以被指定为值<code>type</code>所述的参数<a href="../../../../javax/xml/crypto/dsig/Reference.html" title="javax.xml.crypto.dsig中的接口"><code>Reference</code></a>类来识别引用的类型)。</span>
</div> </td>
</tr>
</tbody>
</table> </li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- --> </a> <h3>方法摘要</h3>
<table border="0" cellpadding="3" cellspacing="0" class="memberSummary" summary="Method Summary table, listing methods, and an explanation">
<caption>
<span class="activeTableTab" id="t0"><span>所有方法</span><span class="tabEnd"> </span></span>
<span class="tableTab" id="t2"><span><a href="javascript:show(2);">接口方法</a></span><span class="tabEnd"> </span></span>
<span class="tableTab" id="t3"><span><a href="javascript:show(4);">抽象方法</a></span><span class="tabEnd"> </span></span>
</caption>
<tbody>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor" id="i0">
<td class="colFirst"><code><a href="../../../../java/lang/String.html" title="class in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/xml/crypto/dsig/Manifest.html#getId--">getId</a></span>()</code>
<div class="block">
返回此
<code>Manifest</code>的ID。
</div> </td>
</tr>
<tr class="rowColor" id="i1">
<td class="colFirst"><code><a href="../../../../java/util/List.html" title="interface in java.util">List</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/xml/crypto/dsig/Manifest.html#getReferences--">getReferences</a></span>()</code>
<div class="block">
<span>返回此<a href="../../../../java/util/Collections.html#unmodifiableList-java.util.List-">Manifest中包含</a>的一个或多个<a href="../../../../javax/xml/crypto/dsig/Reference.html" title="javax.xml.crypto.dsig中的接口"><code>Reference</code></a><code>Manifest</code></span>
</div> </td>
</tr>
</tbody>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.javax.xml.crypto.XMLStructure">
<!-- --> </a> <h3>Methods inherited from interface javax.xml.crypto.<a href="../../../../javax/xml/crypto/XMLStructure.html" title="interface in javax.xml.crypto">XMLStructure</a></h3> <code><a href="../../../../javax/xml/crypto/XMLStructure.html#isFeatureSupported-java.lang.String-">isFeatureSupported</a></code></li>
</ul> </li>
</ul> </li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.detail">
<!-- --> </a> <h3>字段详细信息</h3> <a name="TYPE">
<!-- --> </a>
<ul class="blockListLast">
<li class="blockList"> <h4>TYPE</h4> <pre>static final <a href="../../../../java/lang/String.html" title="class in java.lang">String</a> TYPE</pre>
<div class="block">
<span>URI标识<code>Manifest</code>元件(这可以被指定为值<code>type</code>所述的参数<a href="../../../../javax/xml/crypto/dsig/Reference.html" title="javax.xml.crypto.dsig中的接口"><code>Reference</code></a>类来识别引用的类型)。</span>
</div>
<dl>
<dt>
<span class="seeLabel">另请参见:</span>
</dt>
<dd>
<a href="../../../../constant-values.html#javax.xml.crypto.dsig.Manifest.TYPE">Constant Field Values</a>
</dd>
</dl> </li>
</ul> </li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- --> </a> <h3>方法详细信息</h3> <a name="getId--">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>getId</h4> <pre><a href="../../../../java/lang/String.html" title="class in java.lang">String</a> getId()</pre>
<div class="block">
返回此
<code>Manifest</code>的ID。
</div>
<dl>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
<code>Manifest</code>的ID
<code>null</code>如果未指定)
</dd>
</dl> </li>
</ul> <a name="getReferences--">
<!-- --> </a>
<ul class="blockListLast">
<li class="blockList"> <h4>getReferences</h4> <pre><a href="../../../../java/util/List.html" title="interface in java.util">List</a> getReferences()</pre>
<div class="block">
<span>返回此<a href="../../../../java/util/Collections.html#unmodifiableList-java.util.List-">Manifest中包含</a>的一个或多个<a href="../../../../javax/xml/crypto/dsig/Reference.html" title="javax.xml.crypto.dsig中的接口"><code>Reference</code></a><code>Manifest</code></span>
</div>
<dl>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
an unmodifiable list of one or more
<code>Reference</code>s
</dd>
</dl> </li>
</ul> </li>
</ul> </li>
</ul>
</div>
</div>