⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 messagedigestspi.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><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="MessageDigestSpi()"><!-- --></A><H3>MessageDigestSpi</H3><PRE>public <B>MessageDigestSpi</B>()</PRE><DL></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="engineGetDigestLength()"><!-- --></A><H3>engineGetDigestLength</H3><PRE>protected int <B>engineGetDigestLength</B>()</PRE><DL><DD>Returns the digest length in bytes. <p>This concrete method has been added to this previously-defined abstract class. (For backwards compatibility, it cannot be abstract.)  <p>The default behavior is to return 0.  <p>This method may be overridden by a provider to return the digest length.<DD><DL><DT><B>Returns:</B><DD>the digest length in bytes.<DT><B>Since: </B><DD>1.2</DD></DL></DD></DL><HR><A NAME="engineUpdate(byte)"><!-- --></A><H3>engineUpdate</H3><PRE>protected abstract void <B>engineUpdate</B>(byte&nbsp;input)</PRE><DL><DD>Updates the digest using the specified byte.<DD><DL><DT><B>Parameters:</B><DD><CODE>input</CODE> - the byte to use for the update.</DL></DD></DL><HR><A NAME="engineUpdate(byte[], int, int)"><!-- --></A><H3>engineUpdate</H3><PRE>protected abstract void <B>engineUpdate</B>(byte[]&nbsp;input,                                     int&nbsp;offset,                                     int&nbsp;len)</PRE><DL><DD>Updates the digest using the specified array of bytes,     starting at the specified offset.<DD><DL><DT><B>Parameters:</B><DD><CODE>input</CODE> - the array of bytes to use for the update.<DD><CODE>offset</CODE> - the offset to start from in the array of bytes.<DD><CODE>len</CODE> - the number of bytes to use, starting at  <code>offset</code>.</DL></DD></DL><HR><A NAME="engineDigest()"><!-- --></A><H3>engineDigest</H3><PRE>protected abstract byte[] <B>engineDigest</B>()</PRE><DL><DD>Completes the hash computation by performing final operations such as padding. Once <code>engineDigest</code> has  been called, the engine should be reset (see  <A HREF="../../java/security/MessageDigestSpi.html#engineReset()"><CODE>engineReset</CODE></A>).   Resetting is the responsibility of the engine implementor.<DD><DL><DT><B>Returns:</B><DD>the array of bytes for the resulting hash value.</DL></DD></DL><HR><A NAME="engineDigest(byte[], int, int)"><!-- --></A><H3>engineDigest</H3><PRE>protected int <B>engineDigest</B>(byte[]&nbsp;buf,                           int&nbsp;offset,                           int&nbsp;len)                    throws <A HREF="../../java/security/DigestException.html">DigestException</A></PRE><DL><DD>Completes the hash computation by performing final operations such as padding. Once <code>engineDigest</code> has been called, the engine should be reset (see  <A HREF="../../java/security/MessageDigestSpi.html#engineReset()"><CODE>engineReset</CODE></A>).   Resetting is the responsibility of the engine implementor. This method should be abstract, but we leave it concrete for binary compatibility.  Knowledgeable providers should override this method.<DD><DL><DT><B>Parameters:</B><DD><CODE>buf</CODE> - the output buffer in which to store the digest<DD><CODE>offset</CODE> - offset to start from in the output buffer<DD><CODE>len</CODE> - number of bytes within buf allotted for the digest. Both this default implementation and the SUN provider do not return partial digests.  The presence of this parameter is solely for consistency in our API's.  If the value of this parameter is less than the actual digest length, the method will throw a DigestException. This parameter is ignored if its value is greater than or equal to the actual digest length.<DT><B>Returns:</B><DD>the length of the digest stored in the output buffer.<DT><B>Throws:</B><DD><CODE><A HREF="../../java/security/DigestException.html">DigestException</A></CODE> - if an error occurs.<DT><B>Since: </B><DD>1.2</DD></DL></DD></DL><HR><A NAME="engineReset()"><!-- --></A><H3>engineReset</H3><PRE>protected abstract void <B>engineReset</B>()</PRE><DL><DD>Resets the digest for further use.</DL><HR><A NAME="clone()"><!-- --></A><H3>clone</H3><PRE>public <A HREF="../../java/lang/Object.html">Object</A> <B>clone</B>()             throws <A HREF="../../java/lang/CloneNotSupportedException.html">CloneNotSupportedException</A></PRE><DL><DD>Returns a clone if the implementation is cloneable.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../java/lang/Object.html#clone()">clone</A></CODE> in class <CODE><A HREF="../../java/lang/Object.html">Object</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a clone if the implementation is cloneable.<DT><B>Throws:</B><DD><CODE><A HREF="../../java/lang/CloneNotSupportedException.html">CloneNotSupportedException</A></CODE> - if this is called on an implementation that does not support <code>Cloneable</code>.</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>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/MessageDigestSpi.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup>&nbsp;2&nbsp;Platform<br>Std.&nbsp;Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../java/security/MessageDigest.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../java/security/Permission.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>  &nbsp;&nbsp;<A HREF="MessageDigestSpi.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: &nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<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 + -