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

📄 mac.html

📁 jxta的api库
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<DL><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#jxta.security.mac.MAC.name">Constant Field Values</A></DL></DL><HR><A NAME="ALG_NULL"><!-- --></A><H3>ALG_NULL</H3><PRE>public static final byte <B>ALG_NULL</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#jxta.security.mac.MAC.ALG_NULL">Constant Field Values</A></DL></DL><HR><A NAME="ALG_RC4_SHA1"><!-- --></A><H3>ALG_RC4_SHA1</H3><PRE>public static final byte <B>ALG_RC4_SHA1</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#jxta.security.mac.MAC.ALG_RC4_SHA1">Constant Field Values</A></DL></DL><HR><A NAME="ALG_RC4_MD5"><!-- --></A><H3>ALG_RC4_MD5</H3><PRE>public static final byte <B>ALG_RC4_MD5</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#jxta.security.mac.MAC.ALG_RC4_MD5">Constant Field Values</A></DL></DL><HR><A NAME="MODE_ENCRYPT"><!-- --></A><H3>MODE_ENCRYPT</H3><PRE>public static final byte <B>MODE_ENCRYPT</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#jxta.security.mac.MAC.MODE_ENCRYPT">Constant Field Values</A></DL></DL><HR><A NAME="MODE_VERIFY"><!-- --></A><H3>MODE_VERIFY</H3><PRE>public static final byte <B>MODE_VERIFY</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#jxta.security.mac.MAC.MODE_VERIFY">Constant Field Values</A></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="getAlgorithmName()"><!-- --></A><H3>getAlgorithmName</H3><PRE>public java.lang.String <B>getAlgorithmName</B>()</PRE><DL><DD>return algorithm name as a String<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../jxta/security/util/Description.html#getAlgorithmName()">getAlgorithmName</A></CODE> in interface <CODE><A HREF="../../../jxta/security/util/Description.html" title="interface in jxta.security.util">Description</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getAlgorithm()"><!-- --></A><H3>getAlgorithm</H3><PRE>public byte <B>getAlgorithm</B>()</PRE><DL><DD>return algorithm type value<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getLength()"><!-- --></A><H3>getLength</H3><PRE>public int <B>getLength</B>()</PRE><DL><DD>get the length of the MAC<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="init(byte, jxta.security.cipher.Key, byte[])"><!-- --></A><H3>init</H3><PRE>public void <B>init</B>(byte&nbsp;theMode,                 <A HREF="../../../jxta/security/cipher/Key.html" title="interface in jxta.security.cipher">Key</A>&nbsp;theKey,                 byte[]&nbsp;privateKey)          throws <A HREF="../../../jxta/security/exceptions/CryptoException.html" title="class in jxta.security.exceptions">CryptoException</A></PRE><DL><DD>initialize the MAC object behaviour<P><DD><DL></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../../jxta/security/exceptions/CryptoException.html" title="class in jxta.security.exceptions">CryptoException</A></CODE></DL></DD></DL><HR><A NAME="update(byte[], int, int)"><!-- --></A><H3>update</H3><PRE>public void <B>update</B>(byte[]&nbsp;inbuf,                   int&nbsp;offset,                   int&nbsp;length)            throws <A HREF="../../../jxta/security/exceptions/CryptoException.html" title="class in jxta.security.exceptions">CryptoException</A></PRE><DL><DD>updates data to be encrypted.<P><DD><DL></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../../jxta/security/exceptions/CryptoException.html" title="class in jxta.security.exceptions">CryptoException</A></CODE></DL></DD></DL><HR><A NAME="encrypt(byte[], int, int, byte[], int)"><!-- --></A><H3>encrypt</H3><PRE>public int <B>encrypt</B>(byte[]&nbsp;inbuff,                   int&nbsp;offset,                   int&nbsp;inLength,                   byte[]&nbsp;macBuff,                   int&nbsp;macOffset)            throws <A HREF="../../../jxta/security/exceptions/CryptoException.html" title="class in jxta.security.exceptions">CryptoException</A></PRE><DL><DD>Encrypts the digest after updating the last buffer of data (may be the only buffer)<P><DD><DL></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../../jxta/security/exceptions/CryptoException.html" title="class in jxta.security.exceptions">CryptoException</A></CODE></DL></DD></DL><HR><A NAME="verify(byte[], int, int, byte[], int, int)"><!-- --></A><H3>verify</H3><PRE>public boolean <B>verify</B>(byte[]&nbsp;inBuff,                      int&nbsp;inOffset,                      int&nbsp;inLength,                      byte[]&nbsp;macBuff,                      int&nbsp;macOffset,                      int&nbsp;macLength)               throws <A HREF="../../../jxta/security/exceptions/CryptoException.html" title="class in jxta.security.exceptions">CryptoException</A></PRE><DL><DD>Verifies a MAC for last/only inBuff against the signature in sigBuff. One can use update as with encrypt().<P><DD><DL></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../../jxta/security/exceptions/CryptoException.html" title="class in jxta.security.exceptions">CryptoException</A></CODE></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">  <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/MAC.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-all.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>JXTA J2SE</EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;PREV CLASS&nbsp;&nbsp;NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="MAC.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<SCRIPT type="text/javascript">  <!--  if(window==top) {    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');  }  //--></SCRIPT><NOSCRIPT>  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -