132 lines
6.1 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">
compact1, compact2, compact3
</div>
<div class="subTitle">
javax.security.auth
</div>
<h2 class="title" title="Interface Destroyable">Interface Destroyable</h2>
</div><div class="contentContainer">
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>
All Known Subinterfaces:
</dt>
<dd>
<span><a href="../../../javax/crypto/interfaces/DHPrivateKey.html" title="javax.crypto.interfaces中的接口">DHPrivateKey</a> <a href="../../../java/security/interfaces/DSAPrivateKey.html" title="java.security.interfaces中的接口">DSAPrivateKey</a> <a href="../../../java/security/interfaces/ECPrivateKey.html" title="java.security.interfaces中的接口">ECPrivateKey</a> <a href="../../../javax/crypto/interfaces/PBEKey.html" title="javax.crypto.interfaces中的接口">PBEKey</a> <a href="../../../java/security/PrivateKey.html" title="java.security中的接口">PrivateKey</a> <a href="../../../java/security/interfaces/RSAMultiPrimePrivateCrtKey.html" title="java.security.interfaces中的接口">RSAMultiPrimePrivateCrtKey</a> <a href="../../../java/security/interfaces/RSAPrivateCrtKey.html" title="java.security.interfaces中的接口">RSAPrivateCrtKey</a> <a href="../../../java/security/interfaces/RSAPrivateKey.html" title="java.security.interfaces中的接口">RSAPrivateKey</a> <a href="../../../javax/crypto/SecretKey.html" title="javax.crypto中的接口">SecretKey</a></span>
</dd>
</dl>
<dl>
<dt>
所有已知实现类:
</dt>
<dd>
<span><a href="../../../javax/security/auth/kerberos/KerberosKey.html" title="javax.security.auth.kerberos中的类">KerberosKey</a> <a href="../../../javax/security/auth/kerberos/KerberosTicket.html" title="javax.security.auth.kerberos中的类">KerberosTicket</a> <a href="../../../java/security/KeyStore.PasswordProtection.html" title="java.security中的类">KeyStore.PasswordProtection</a> <a href="../../../javax/crypto/spec/SecretKeySpec.html" title="javax.crypto.spec中的类">SecretKeySpec</a> <a href="../../../javax/security/auth/x500/X500PrivateCredential.html" title="javax.security.auth.x500中的类">X500PrivateCredential</a></span>
</dd>
</dl>
<hr/> <br/> <pre>public interface <span class="typeNameLabel">Destroyable</span></pre>
<div class="block">
诸如凭证的对象可以可选地实现该接口以提供破坏其内容的能力。
</div>
<dl>
<dt>
<span class="seeLabel">另请参见:</span>
</dt>
<dd>
<span><a href="../../../javax/security/auth/Subject.html" title="javax.security.auth中的类"><code>Subject</code></a></span>
</dd>
</dl> </li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ========== 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="t5"><span><a href="javascript:show(16);">Default Methods</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>default void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javax/security/auth/Destroyable.html#destroy--">destroy</a></span>()</code>
<div class="block">
毁灭这个
<code>Object</code>
</div> </td>
</tr>
<tr class="rowColor" id="i1">
<td class="colFirst"><code>default boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javax/security/auth/Destroyable.html#isDestroyed--">isDestroyed</a></span>()</code>
<div class="block">
确定这
<code>Object</code>是否已被销毁。
</div> </td>
</tr>
</tbody>
</table> </li>
</ul> </li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- --> </a> <h3>方法详细信息</h3> <a name="destroy--">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>destroy</h4> <pre>default void destroy()
throws <a href="../../../javax/security/auth/DestroyFailedException.html" title="class in javax.security.auth">DestroyFailedException</a></pre>
<div class="block">
<span>销毁这个<code>Object</code></span>
<p> <span>与此<code>Object</code>被销毁或清除。</span> <span>就此某些方法的后续调用<code>Object</code>将导致<code>IllegalStateException</code>抛出。</span> </p>
<p> <span>默认实现会抛出<code>DestroyFailedException</code></span> </p>
</div>
<dl>
<dt>
<span class="throwsLabel">异常</span>
</dt>
<dd>
<code><a href="../../../javax/security/auth/DestroyFailedException.html" title="class in javax.security.auth">DestroyFailedException</a></code> - 如果破坏操作失败。
<p></p>
</dd>
<dd>
<code><a href="../../../java/lang/SecurityException.html" title="class in java.lang">SecurityException</a></code> - 如果呼叫者没有权限销毁此
<code>Object</code>
</dd>
</dl> </li>
</ul> <a name="isDestroyed--">
<!-- --> </a>
<ul class="blockListLast">
<li class="blockList"> <h4>isDestroyed</h4> <pre>default boolean isDestroyed()</pre>
<div class="block">
<span>确定这<code>Object</code>是否已被销毁。</span>
<p> <span>默认实现返回false。</span> </p>
</div>
<dl>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
如果这个
<code>Object</code>已被销毁则为真否则为false。
</dd>
</dl> </li>
</ul> </li>
</ul> </li>
</ul>
</div>
</div>