📄 algorithmparameters.html
字号:
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="AlgorithmParameters(java.security.AlgorithmParametersSpi, java.security.Provider, java.lang.String)"><!-- --></A><H3>AlgorithmParameters</H3><PRE>protected <B>AlgorithmParameters</B>(<A HREF="../../java/security/AlgorithmParametersSpi.html">AlgorithmParametersSpi</A> paramSpi, <A HREF="../../java/security/Provider.html">Provider</A> provider, <A HREF="../../java/lang/String.html">String</A> algorithm)</PRE><DL><DD>Creates an AlgorithmParameters object.<DD><DL><DT><B>Parameters:</B><DD><CODE>paramSpi</CODE> - the delegate<DD><CODE>provider</CODE> - the provider<DD><CODE>algorithm</CODE> - the algorithm</DL></DD></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="getAlgorithm()"><!-- --></A><H3>getAlgorithm</H3><PRE>public final <A HREF="../../java/lang/String.html">String</A> <B>getAlgorithm</B>()</PRE><DL><DD>Returns the name of the algorithm associated with this parameter object.<DD><DL><DT><B>Returns:</B><DD>the algorithm name.</DL></DD></DL><HR><A NAME="getInstance(java.lang.String)"><!-- --></A><H3>getInstance</H3><PRE>public static <A HREF="../../java/security/AlgorithmParameters.html">AlgorithmParameters</A> <B>getInstance</B>(<A HREF="../../java/lang/String.html">String</A> algorithm) throws <A HREF="../../java/security/NoSuchAlgorithmException.html">NoSuchAlgorithmException</A></PRE><DL><DD>Generates a parameter object for the specified algorithm. <p>If the default provider package provides an implementation of the requested algorithm, an instance of AlgorithmParameters containing that implementation is returned. If the algorithm is not available in the default package, other packages are searched. <p>The returned parameter object must be initialized via a call to <code>init</code>, using an appropriate parameter specification or parameter encoding.<DD><DL><DT><B>Parameters:</B><DD><CODE>algorithm</CODE> - the name of the algorithm requested.<DT><B>Returns:</B><DD>the new parameter object.<DT><B>Throws:</B><DD><CODE><A HREF="../../java/security/NoSuchAlgorithmException.html">NoSuchAlgorithmException</A></CODE> - if the algorithm is not available in the environment.</DL></DD></DL><HR><A NAME="getInstance(java.lang.String, java.lang.String)"><!-- --></A><H3>getInstance</H3><PRE>public static <A HREF="../../java/security/AlgorithmParameters.html">AlgorithmParameters</A> <B>getInstance</B>(<A HREF="../../java/lang/String.html">String</A> algorithm, <A HREF="../../java/lang/String.html">String</A> provider) throws <A HREF="../../java/security/NoSuchAlgorithmException.html">NoSuchAlgorithmException</A>, <A HREF="../../java/security/NoSuchProviderException.html">NoSuchProviderException</A></PRE><DL><DD>Generates a parameter object for the specified algorithm, as supplied by the specified provider, if such an algorithm is available from the provider. <p>The returned parameter object must be initialized via a call to <code>init</code>, using an appropriate parameter specification or parameter encoding.<DD><DL><DT><B>Parameters:</B><DD><CODE>algorithm</CODE> - the name of the algorithm requested.<DD><CODE>provider</CODE> - the name of the provider.<DT><B>Returns:</B><DD>the new parameter object.<DT><B>Throws:</B><DD><CODE><A HREF="../../java/security/NoSuchAlgorithmException.html">NoSuchAlgorithmException</A></CODE> - if the algorithm is not available in the package supplied by the requested provider.<DD><CODE><A HREF="../../java/security/NoSuchProviderException.html">NoSuchProviderException</A></CODE> - if the provider is not available in the environment.<DT><B>See Also: </B><DD><A HREF="../../java/security/Provider.html"><CODE>Provider</CODE></A></DL></DD></DL><HR><A NAME="getProvider()"><!-- --></A><H3>getProvider</H3><PRE>public final <A HREF="../../java/security/Provider.html">Provider</A> <B>getProvider</B>()</PRE><DL><DD>Returns the provider of this parameter object.<DD><DL><DT><B>Returns:</B><DD>the provider of this parameter object</DL></DD></DL><HR><A NAME="init(java.security.spec.AlgorithmParameterSpec)"><!-- --></A><H3>init</H3><PRE>public final void <B>init</B>(<A HREF="../../java/security/spec/AlgorithmParameterSpec.html">AlgorithmParameterSpec</A> paramSpec) throws <A HREF="../../java/security/spec/InvalidParameterSpecException.html">InvalidParameterSpecException</A></PRE><DL><DD>Initializes this parameter object using the parameters specified in <code>paramSpec</code>.<DD><DL><DT><B>Parameters:</B><DD><CODE>paramSpec</CODE> - the parameter specification.<DT><B>Throws:</B><DD><CODE><A HREF="../../java/security/spec/InvalidParameterSpecException.html">InvalidParameterSpecException</A></CODE> - if the given parameter specification is inappropriate for the initialization of this parameter object, or if this parameter object has already been initialized.</DL></DD></DL><HR><A NAME="init(byte[])"><!-- --></A><H3>init</H3><PRE>public final void <B>init</B>(byte[] params) throws <A HREF="../../java/io/IOException.html">IOException</A></PRE><DL><DD>Imports the specified parameters and decodes them according to the primary decoding format for parameters. The primary decoding format for parameters is ASN.1, if an ASN.1 specification for this type of parameters exists.<DD><DL><DT><B>Parameters:</B><DD><CODE>params</CODE> - the encoded parameters.<DT><B>Throws:</B><DD><CODE><A HREF="../../java/io/IOException.html">IOException</A></CODE> - on decoding errors, or if this parameter object has already been initialized.</DL></DD></DL><HR><A NAME="init(byte[], java.lang.String)"><!-- --></A><H3>init</H3><PRE>public final void <B>init</B>(byte[] params, <A HREF="../../java/lang/String.html">String</A> format) throws <A HREF="../../java/io/IOException.html">IOException</A></PRE><DL><DD>Imports the parameters from <code>params</code> and decodes them according to the specified decoding scheme. If <code>format</code> is null, the primary decoding format for parameters is used. The primary decoding format is ASN.1, if an ASN.1 specification for these parameters exists.<DD><DL><DT><B>Parameters:</B><DD><CODE>params</CODE> - the encoded parameters.<DD><CODE>format</CODE> - the name of the decoding scheme.<DT><B>Throws:</B><DD><CODE><A HREF="../../java/io/IOException.html">IOException</A></CODE> - on decoding errors, or if this parameter object has already been initialized.</DL></DD></DL><HR><A NAME="getParameterSpec(java.lang.Class)"><!-- --></A><H3>getParameterSpec</H3><PRE>public final <A HREF="../../java/security/spec/AlgorithmParameterSpec.html">AlgorithmParameterSpec</A> <B>getParameterSpec</B>(<A HREF="../../java/lang/Class.html">Class</A> paramSpec) throws <A HREF="../../java/security/spec/InvalidParameterSpecException.html">InvalidParameterSpecException</A></PRE><DL><DD>Returns a (transparent) specification of this parameter object. <code>paramSpec</code> identifies the specification class in which the parameters should be returned. It could, for example, be <code>DSAParameterSpec.class</code>, to indicate that the parameters should be returned in an instance of the <code>DSAParameterSpec</code> class.<DD><DL><DT><B>Parameters:</B><DD><CODE>paramSpec</CODE> - the specification class in which the parameters should be returned.<DT><B>Returns:</B><DD>the parameter specification.<DT><B>Throws:</B><DD><CODE><A HREF="../../java/security/spec/InvalidParameterSpecException.html">InvalidParameterSpecException</A></CODE> - if the requested parameter specification is inappropriate for this parameter object, or if this parameter object has not been initialized.</DL></DD></DL><HR><A NAME="getEncoded()"><!-- --></A><H3>getEncoded</H3><PRE>public final byte[] <B>getEncoded</B>() throws <A HREF="../../java/io/IOException.html">IOException</A></PRE><DL><DD>Returns the parameters in their primary encoding format. The primary encoding format for parameters is ASN.1, if an ASN.1 specification for this type of parameters exists.<DD><DL><DT><B>Returns:</B><DD>the parameters encoded using their primary encoding format.<DT><B>Throws:</B><DD><CODE><A HREF="../../java/io/IOException.html">IOException</A></CODE> - on encoding errors, or if this parameter object has not been initialized.</DL></DD></DL><HR><A NAME="getEncoded(java.lang.String)"><!-- --></A><H3>getEncoded</H3><PRE>public final byte[] <B>getEncoded</B>(<A HREF="../../java/lang/String.html">String</A> format) throws <A HREF="../../java/io/IOException.html">IOException</A></PRE><DL><DD>Returns the parameters encoded in the specified scheme. If <code>format</code> is null, the primary encoding format for parameters is used. The primary encoding format is ASN.1, if an ASN.1 specification for these parameters exists.<DD><DL><DT><B>Parameters:</B><DD><CODE>format</CODE> - the name of the encoding format.<DT><B>Returns:</B><DD>the parameters encoded using the specified encoding scheme.<DT><B>Throws:</B><DD><CODE><A HREF="../../java/io/IOException.html">IOException</A></CODE> - on encoding errors, or if this parameter object has not been initialized.</DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public final <A HREF="../../java/lang/String.html">String</A> <B>toString</B>()</PRE><DL><DD>Returns a formatted string describing the parameters.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../java/lang/Object.html#toString()">toString</A></CODE> in class <CODE><A HREF="../../java/lang/Object.html">Object</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a formatted string describing the parameters, or null if this parameter object has not been initialized.</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/AlgorithmParameters.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup> 2 Platform<br>Std. Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../java/security/AlgorithmParameterGeneratorSpi.html"><B>PREV CLASS</B></A> <A HREF="../../java/security/AlgorithmParametersSpi.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="AlgorithmParameters.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><font size="-1"><a href="http://java.sun.com/cgi-bin/bugreport.cgi">Submit a bug or feature</a><br>For further API reference and developer documentation, see <a href="http://java.sun.com/products/jdk/1.3/devdocs-vs-specs.html">Java 2 SDK SE Developer Documentation</a>. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. <p>Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.<br>Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road<br>Palo Alto, California, 94303, U.S.A. All Rights Reserved.</font></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -