uTools-Manuals/docs/java/javax/crypto/spec/OAEPParameterSpec.html

303 lines
13 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">
javax.crypto.spec
</div>
<h2 class="title" title="Class OAEPParameterSpec">Class OAEPParameterSpec</h2>
</div><div class="contentContainer">
<ul class="inheritance">
<li><a href="../../../java/lang/Object.html" title="class in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li>javax.crypto.spec.OAEPParameterSpec</li>
</ul> </li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>
All Implemented Interfaces:
</dt>
<dd>
<span><a href="../../../java/security/spec/AlgorithmParameterSpec.html" title="java.security.spec中的接口">AlgorithmParameterSpec</a></span>
</dd>
</dl>
<hr/> <br/> <pre>public class <span class="typeNameLabel">OAEPParameterSpec</span>
extends <a href="../../../java/lang/Object.html" title="class in java.lang">Object</a>
implements <a href="../../../java/security/spec/AlgorithmParameterSpec.html" title="interface in java.security.spec">AlgorithmParameterSpec</a></pre>
<div class="block">
<span>该类指定了用于OAEP填充的参数集<a href="http://www.ietf.org/rfc/rfc3447.txt">PKCS #1</a>标准中所定义。</span>
<span>其PKCS1标准中的ASN.1定义如下:</span>
<pre> <span>RSAES-OAEP-params ::= SEQUENCE {
hashAlgorithm [0] OAEP-PSSDigestAlgorithms DEFAULT sha1,
maskGenAlgorithm [1] PKCS1MGFAlgorithms DEFAULT mgf1SHA1,
pSourceAlgorithm [2] PKCS1PSourceAlgorithms DEFAULT pSpecifiedEmpty
}</span> </pre>
<span>哪里</span>
<pre> <span>OAEP-PSSDigestAlgorithms ALGORITHM-IDENTIFIER ::= {
{ OID id-sha1 PARAMETERS NULL }|
{ OID id-sha256 PARAMETERS NULL }|
{ OID id-sha384 PARAMETERS NULL }|
{ OID id-sha512 PARAMETERS NULL },
... -- Allows for future expansion --
}
PKCS1MGFAlgorithms ALGORITHM-IDENTIFIER ::= {
{ OID id-mgf1 PARAMETERS OAEP-PSSDigestAlgorithms },
... -- Allows for future expansion --
}
PKCS1PSourceAlgorithms ALGORITHM-IDENTIFIER ::= {
{ OID id-pSpecified PARAMETERS OCTET STRING },
... -- Allows for future expansion --
}</span> </pre>
<p> <span>注意OAEPParameterSpec.DEFAULT使用以下消息消息摘要 - “SHA-1”掩码生成函数mgf - mgf的“MGF1”参数 - MGF1ParameterSpec.SHA1编码输入源 - PSource.PSpecified.DEFAULT</span> </p>
</div>
<dl>
<dt>
<span class="simpleTagLabel">从以下版本开始:</span>
</dt>
<dd>
1.5
</dd>
<dt>
<span class="seeLabel">另请参见:</span>
</dt>
<dd>
<span><a href="../../../java/security/spec/MGF1ParameterSpec.html" title="java.security.spec中的类"><code>MGF1ParameterSpec</code></a> <a href="../../../javax/crypto/spec/PSource.html" title="javax.crypto.spec中的类"><code>PSource</code></a></span>
</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="../../../javax/crypto/spec/OAEPParameterSpec.html" title="class in javax.crypto.spec">OAEPParameterSpec</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javax/crypto/spec/OAEPParameterSpec.html#DEFAULT">DEFAULT</a></span></code>
<div class="block">
OAEP参数设置为所有默认值。
</div> </td>
</tr>
</tbody>
</table> </li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
<!-- --> </a> <h3>构造方法摘要</h3>
<table border="0" cellpadding="3" cellspacing="0" class="memberSummary" summary="Constructor Summary table, listing constructors, and an explanation">
<caption>
<span>构造方法</span>
<span class="tabEnd"> </span>
</caption>
<tbody>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../javax/crypto/spec/OAEPParameterSpec.html#OAEPParameterSpec-java.lang.String-java.lang.String-java.security.spec.AlgorithmParameterSpec-javax.crypto.spec.PSource-">OAEPParameterSpec</a></span>(<a href="../../../java/lang/String.html" title="class in java.lang">String</a> mdName, <a href="../../../java/lang/String.html" title="class in java.lang">String</a> mgfName, <a href="../../../java/security/spec/AlgorithmParameterSpec.html" title="interface in java.security.spec">AlgorithmParameterSpec</a> mgfSpec, <a href="../../../javax/crypto/spec/PSource.html" title="class in javax.crypto.spec">PSource</a> pSrc)</code>
<div class="block">
使用指定的消息摘要算法
<code>mdName</code> ,掩码生成函数算法
<code>mgfName</code> ,掩码生成函数
<code>mgfSpec</code>和编码输入P
<code>pSrc</code>源构造用于PKCS1标准中定义的OAEP填充的参数集。
</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="t4"><span><a href="javascript:show(8);">具体的方法</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/crypto/spec/OAEPParameterSpec.html#getDigestAlgorithm--">getDigestAlgorithm</a></span>()</code>
<div class="block">
返回消息摘要算法名称。
</div> </td>
</tr>
<tr class="rowColor" id="i1">
<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/crypto/spec/OAEPParameterSpec.html#getMGFAlgorithm--">getMGFAlgorithm</a></span>()</code>
<div class="block">
返回掩码生成函数算法名称。
</div> </td>
</tr>
<tr class="altColor" id="i2">
<td class="colFirst"><code><a href="../../../java/security/spec/AlgorithmParameterSpec.html" title="interface in java.security.spec">AlgorithmParameterSpec</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javax/crypto/spec/OAEPParameterSpec.html#getMGFParameters--">getMGFParameters</a></span>()</code>
<div class="block">
返回掩码生成函数的参数。
</div> </td>
</tr>
<tr class="rowColor" id="i3">
<td class="colFirst"><code><a href="../../../javax/crypto/spec/PSource.html" title="class in javax.crypto.spec">PSource</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javax/crypto/spec/OAEPParameterSpec.html#getPSource--">getPSource</a></span>()</code>
<div class="block">
返回编码输入P的来源。
</div> </td>
</tr>
</tbody>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- --> </a> <h3>Methods inherited from class java.lang.<a href="../../../java/lang/Object.html" title="class in java.lang">Object</a></h3> <code><a href="../../../java/lang/Object.html#clone--">clone</a>, <a href="../../../java/lang/Object.html#equals-java.lang.Object-">equals</a>, <a href="../../../java/lang/Object.html#finalize--">finalize</a>, <a href="../../../java/lang/Object.html#getClass--">getClass</a>, <a href="../../../java/lang/Object.html#hashCode--">hashCode</a>, <a href="../../../java/lang/Object.html#notify--">notify</a>, <a href="../../../java/lang/Object.html#notifyAll--">notifyAll</a>, <a href="../../../java/lang/Object.html#toString--">toString</a>, <a href="../../../java/lang/Object.html#wait--">wait</a>, <a href="../../../java/lang/Object.html#wait-long-">wait</a>, <a href="../../../java/lang/Object.html#wait-long-int-">wait</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="DEFAULT">
<!-- --> </a>
<ul class="blockListLast">
<li class="blockList"> <h4>DEFAULT</h4> <pre>public static final <a href="../../../javax/crypto/spec/OAEPParameterSpec.html" title="class in javax.crypto.spec">OAEPParameterSpec</a> DEFAULT</pre>
<div class="block">
OAEP参数设置为所有默认值。
</div> </li>
</ul> </li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- --> </a> <h3>构造方法详细信息</h3> <a name="OAEPParameterSpec-java.lang.String-java.lang.String-java.security.spec.AlgorithmParameterSpec-javax.crypto.spec.PSource-">
<!-- --> </a>
<ul class="blockListLast">
<li class="blockList"> <h4>OAEPParameterSpec</h4> <pre>public OAEPParameterSpec(<a href="../../../java/lang/String.html" title="class in java.lang">String</a> mdName,
<a href="../../../java/lang/String.html" title="class in java.lang">String</a> mgfName,
<a href="../../../java/security/spec/AlgorithmParameterSpec.html" title="interface in java.security.spec">AlgorithmParameterSpec</a> mgfSpec,
<a href="../../../javax/crypto/spec/PSource.html" title="class in javax.crypto.spec">PSource</a> pSrc)</pre>
<div class="block">
使用指定的消息摘要算法
<code>mdName</code> ,掩码生成函数算法
<code>mgfName</code> ,掩码生成函数
<code>mgfSpec</code>和编码输入P
<code>pSrc</code>源构造用于PKCS1标准中定义的OAEP填充的参数集。
</div>
<dl>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>mdName</code> - 消息摘要的算法名称。
</dd>
<dd>
<code>mgfName</code> - 掩码生成函数的算法名称。
</dd>
<dd>
<span><code>mgfSpec</code> - 掩码生成功能的参数。</span>
<span>如果指定为null则由getMGFParameters返回null。</span>
</dd>
<dd>
<code>pSrc</code> - 编码输入的源
</dd>
<dt>
<span class="throwsLabel">异常</span>
</dt>
<dd>
<code><a href="../../../java/lang/NullPointerException.html" title="class in java.lang">NullPointerException</a></code>如果-
<code>mdName</code>
<code>mgfName</code> ,或
<code>pSrc</code>为null。
</dd>
</dl> </li>
</ul> </li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- --> </a> <h3>方法详细信息</h3> <a name="getDigestAlgorithm--">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>getDigestAlgorithm</h4> <pre>public <a href="../../../java/lang/String.html" title="class in java.lang">String</a> getDigestAlgorithm()</pre>
<div class="block">
返回消息摘要算法名称。
</div>
<dl>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
消息摘要算法名称。
</dd>
</dl> </li>
</ul> <a name="getMGFAlgorithm--">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>getMGFAlgorithm</h4> <pre>public <a href="../../../java/lang/String.html" title="class in java.lang">String</a> getMGFAlgorithm()</pre>
<div class="block">
返回掩码生成函数算法名称。
</div>
<dl>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
面具生成函数算法名称。
</dd>
</dl> </li>
</ul> <a name="getMGFParameters--">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>getMGFParameters</h4> <pre>public <a href="../../../java/security/spec/AlgorithmParameterSpec.html" title="interface in java.security.spec">AlgorithmParameterSpec</a> getMGFParameters()</pre>
<div class="block">
返回掩码生成函数的参数。
</div>
<dl>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
掩膜生成功能的参数。
</dd>
</dl> </li>
</ul> <a name="getPSource--">
<!-- --> </a>
<ul class="blockListLast">
<li class="blockList"> <h4>getPSource</h4> <pre>public <a href="../../../javax/crypto/spec/PSource.html" title="class in javax.crypto.spec">PSource</a> getPSource()</pre>
<div class="block">
返回编码输入P的来源。
</div>
<dl>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
the source of encoding input P.
</dd>
</dl> </li>
</ul> </li>
</ul> </li>
</ul>
</div>
</div>