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

📄 pseconfigadv.html

📁 jxta的api库
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.security.PrivateKey</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/protocol/PSEConfigAdv.html#getPrivateKey(char[])">getPrivateKey</A></B>(char[]&nbsp;password)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the private key from this advertisement. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/protocol/PSEConfigAdv.html#getRootCert()">getRootCert</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the Root Ceritficate for this peer encoded as a BASE64 String.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.security.cert.Certificate</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/protocol/PSEConfigAdv.html#getRootCertificate()">getRootCertificate</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the Root Certificate for this peer.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/protocol/PSEConfigAdv.html#handleElement(net.jxta.document.Element)">handleElement</A></B>(<A HREF="../../../../net/jxta/document/Element.html" title="interface in net.jxta.document">Element</A>&nbsp;raw)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Process an individual element from the document during parse. Normally,  implementations will allow the base advertisments a chance to handle the  element before attempting ot handle the element themselves. ie.  <p/><pre><code>  protected boolean handleElement( Element elem ) {      if ( super.handleElement() ) {           // it's been handled.           return true;           }      <i>... handle elements here ...</i>      // we don't know how to handle the element      return false;      }  </code></pre></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/protocol/PSEConfigAdv.html#setEncryptedPrivateKey(javax.crypto.EncryptedPrivateKeyInfo, java.lang.String)">setEncryptedPrivateKey</A></B>(javax.crypto.EncryptedPrivateKeyInfo&nbsp;newPriv,                       java.lang.String&nbsp;algorithm)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the encrypted private key for this advertisement.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/protocol/PSEConfigAdv.html#setEncryptedPrivateKey(java.lang.String, java.lang.String)">setEncryptedPrivateKey</A></B>(java.lang.String&nbsp;newPriv,                       java.lang.String&nbsp;algorithm)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the encrypted private key for this advertisement. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/protocol/PSEConfigAdv.html#setPrivateKey(char[], java.security.PrivateKey)">setPrivateKey</A></B>(char[]&nbsp;password,              java.security.PrivateKey&nbsp;newPriv)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the encrypted private key for this advertisement.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/protocol/PSEConfigAdv.html#setRootCert(java.security.cert.Certificate)">setRootCert</A></B>(java.security.cert.Certificate&nbsp;newCert)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the Root Certificate for this peer. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/protocol/PSEConfigAdv.html#setRootCert(java.lang.String)">setRootCert</A></B>(java.lang.String&nbsp;newCert)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the Root Ceritficate for this peer encoded as a BASE64 String.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_net.jxta.document.Advertisement"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class net.jxta.document.<A HREF="../../../../net/jxta/document/Advertisement.html" title="class in net.jxta.document">Advertisement</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../net/jxta/document/Advertisement.html#toString()">toString</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.Object</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="PSEConfigAdv()"><!-- --></A><H3>PSEConfigAdv</H3><PRE><B>PSEConfigAdv</B>()</PRE><DL><DD>Use the Instantiator through the factory<P></DL><HR><A NAME="PSEConfigAdv(net.jxta.document.Element)"><!-- --></A><H3>PSEConfigAdv</H3><PRE><B>PSEConfigAdv</B>(<A HREF="../../../../net/jxta/document/Element.html" title="interface in net.jxta.document">Element</A>&nbsp;root)</PRE><DL><DD>Use the Instantiator through the factory<P></DL><!-- ============ 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="clone()"><!-- --></A><H3>clone</H3><PRE>public java.lang.Object <B>clone</B>()</PRE><DL><DD>Make a safe clone of this PSEConfigAdv.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../net/jxta/document/Advertisement.html#clone()">clone</A></CODE> in class <CODE><A HREF="../../../../net/jxta/document/Advertisement.html" title="class in net.jxta.document">Advertisement</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>Object A copy of this PSEConfigAdv</DL></DD></DL><HR><A NAME="getAdvertisementType()"><!-- --></A><H3>getAdvertisementType</H3><PRE>public static java.lang.String <B>getAdvertisementType</B>()</PRE><DL><DD>{@inheritDoc}<P><DD><DL></DL></DD></DL><HR><A NAME="getAdvType()"><!-- --></A><H3>getAdvType</H3><PRE>public java.lang.String <B>getAdvType</B>()</PRE><DL><DD>Returns the identifying type of this Advertisement. Unlike  <A HREF="../../../../net/jxta/document/Advertisement.html#getAdvertisementType()"><CODE>Advertisement.getAdvertisementType()</CODE></A> this method will return the correct  runtime type of an Advertisement object.  <p/>This implementation is provided so as to NOT break the code of  existing advertisements. In most cases you should provide your own  implementation for efficeiny reasons.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../net/jxta/document/Advertisement.html#getAdvType()">getAdvType</A></CODE> in class <CODE><A HREF="../../../../net/jxta/document/Advertisement.html" title="class in net.jxta.document">Advertisement</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the identifying type of this Advertisement</DL></DD></DL><HR><A NAME="getBaseAdvType()"><!-- --></A><H3>getBaseAdvType</H3><PRE>public final java.lang.String <B>getBaseAdvType</B>()</PRE><DL><DD>Returns the base type of this advertisement hierarchy. Typically, only  the most basic advertisement of a type will implement this method and  declare it as <code>final</code>.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/document/ExtendableAdvertisement.html#getBaseAdvType()">getBaseAdvType</A></CODE> in class <CODE><A HREF="../../../../net/jxta/document/ExtendableAdvertisement.html" title="class in net.jxta.document">ExtendableAdvertisement</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>String the base type of advertisements in this hierarchy.</DL></DD></DL><HR><A NAME="getID()"><!-- --></A><H3>getID</H3><PRE>public <A HREF="../../../../net/jxta/id/ID.html" title="class in net.jxta.id">ID</A> <B>getID</B>()</PRE><DL><DD>Returns a unique ID suitable for indexing of this Advertisement.  <p/>The ID is supposed to be unique and is not guaranteed to be of  any particular subclass of ID. Each class of advertisement is  responsible for the choice of ID to return. The value for the ID  returned can either be: <p><ul>      <li>An ID which is already part of the advertisement definition      and is relatively unique between advertisements instances. For      example, the Peer Advertisement returns the Peer ID.</li>      <li>A static CodatID which is generated via some canonical process      which will produce the same value each time and different values for      different advertisements of the same type.</li>      <li>ID.nullID for advertisement types which are not readily indexed.      </li>  </ul>  <p/>Since this ID is normally used for indexing, the IDs returned must   be as unique as possible to avoid collisions.  <p/>For Advertisement types which normally return non-ID.nullID values  no ID should be returned when asked to generate an ID while the  Advertisement is an inconsistent state (example: unitialized index  fields). Instead <code>java.lang.IllegalStateException</code> should be  thrown.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/document/Advertisement.html#getID()">getID</A></CODE> in class <CODE><A HREF="../../../../net/jxta/document/Advertisement.html" title="class in net.jxta.document">Advertisement</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>ID An ID that uniquely identifies the advertisement or ID.nullID  if this advertisement is of a type that is not normally indexed.</DL></DD></DL><HR>

⌨️ 快捷键说明

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