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

📄 pseconfigadv.html

📁 jxta的api库
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<A NAME="getRootCertificate()"><!-- --></A><H3>getRootCertificate</H3><PRE>public java.security.cert.Certificate <B>getRootCertificate</B>()</PRE><DL><DD>Returns the Root Certificate for this peer.<P><DD><DL><DT><B>Returns:</B><DD>the root certificate for this peer.</DL></DD></DL><HR><A NAME="getRootCert()"><!-- --></A><H3>getRootCert</H3><PRE>public java.lang.String <B>getRootCert</B>()</PRE><DL><DD>Returns the Root Ceritficate for this peer encoded as a BASE64 String.<P><DD><DL><DT><B>Returns:</B><DD>the Root Certificate for this peer as a BASE64 String.</DL></DD></DL><HR><A NAME="setRootCert(java.lang.String)"><!-- --></A><H3>setRootCert</H3><PRE>public void <B>setRootCert</B>(java.lang.String&nbsp;newCert)</PRE><DL><DD>Returns the Root Ceritficate for this peer encoded as a BASE64 String.<P><DD><DL><DT><B>Returns:</B><DD>the Root Certificate for this peer as a BASE64 String.</DL></DD></DL><HR><A NAME="setRootCert(java.security.cert.Certificate)"><!-- --></A><H3>setRootCert</H3><PRE>public void <B>setRootCert</B>(java.security.cert.Certificate&nbsp;newCert)</PRE><DL><DD>Sets the Root Certificate for this peer. If null then the Private Key  is also cleared.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>newCert</CODE> - The root certificate to be associated with this peer or  <code>null</code> if clearing the advertisement.</DL></DD></DL><HR><A NAME="getPrivateKey(char[])"><!-- --></A><H3>getPrivateKey</H3><PRE>public java.security.PrivateKey <B>getPrivateKey</B>(char[]&nbsp;password)</PRE><DL><DD>Get the private key from this advertisement. The private key is  retrieved from the advertisement using the provided password.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>password</CODE> - the password to use in attempting to decrypt the private  key.<DT><B>Returns:</B><DD>the decrypted private key.</DL></DD></DL><HR><A NAME="getEncryptedPrivKey()"><!-- --></A><H3>getEncryptedPrivKey</H3><PRE>public java.lang.String <B>getEncryptedPrivKey</B>()</PRE><DL><DD>Get the encrypted private key from this advertisement.<P><DD><DL><DT><B>Returns:</B><DD>the encoded encrypted private key, a BASE64 String of a DER  encoded PKCS8  EncrpytePrivateKeyInfo.</DL></DD></DL><HR><A NAME="setEncryptedPrivateKey(java.lang.String, java.lang.String)"><!-- --></A><H3>setEncryptedPrivateKey</H3><PRE>public void <B>setEncryptedPrivateKey</B>(java.lang.String&nbsp;newPriv,                                   java.lang.String&nbsp;algorithm)</PRE><DL><DD>Set the encrypted private key for this advertisement. The private key  is provided as a BASE64 String of a DER encoded PKCS8  EncrpytePrivateKeyInfo.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>newPriv</CODE> - a BASE64 String of a DER encoded PKCS8  EncrpytePrivateKeyInfo.<DD><CODE>algorithm</CODE> - The public key algorithm used by this private key.  Currently only "RSA" is supported.</DL></DD></DL><HR><A NAME="setEncryptedPrivateKey(javax.crypto.EncryptedPrivateKeyInfo, java.lang.String)"><!-- --></A><H3>setEncryptedPrivateKey</H3><PRE>public void <B>setEncryptedPrivateKey</B>(javax.crypto.EncryptedPrivateKeyInfo&nbsp;newPriv,                                   java.lang.String&nbsp;algorithm)</PRE><DL><DD>Set the encrypted private key for this advertisement.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>newPriv</CODE> - The encrypted private key.<DD><CODE>algorithm</CODE> - The public key algorithm used by this private key.  Currently only "RSA" is supported.</DL></DD></DL><HR><A NAME="setPrivateKey(char[], java.security.PrivateKey)"><!-- --></A><H3>setPrivateKey</H3><PRE>public void <B>setPrivateKey</B>(char[]&nbsp;password,                          java.security.PrivateKey&nbsp;newPriv)</PRE><DL><DD>Set the encrypted private key for this advertisement.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>password</CODE> - The password to be used in encrypting the private key<DD><CODE>newPriv</CODE> - The private key to be stored in encrypted form.</DL></DD></DL><HR><A NAME="handleElement(net.jxta.document.Element)"><!-- --></A><H3>handleElement</H3><PRE>protected boolean <B>handleElement</B>(<A HREF="../../../../net/jxta/document/Element.html" title="interface in net.jxta.document">Element</A>&nbsp;raw)</PRE><DL><DD>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><P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../net/jxta/document/ExtendableAdvertisement.html#handleElement(net.jxta.document.Element)">handleElement</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>Parameters:</B><DD><CODE>raw</CODE> - the element to be processed.<DT><B>Returns:</B><DD>true if the element was recognized, otherwise false.</DL></DD></DL><HR><A NAME="getDocument(net.jxta.document.MimeMediaType)"><!-- --></A><H3>getDocument</H3><PRE>public <A HREF="../../../../net/jxta/document/Document.html" title="interface in net.jxta.document">Document</A> <B>getDocument</B>(<A HREF="../../../../net/jxta/document/MimeMediaType.html" title="class in net.jxta.document">MimeMediaType</A>&nbsp;encodeAs)</PRE><DL><DD>Write advertisement into a document. <code>asMimeType</code> is a mime  media-type specification and provides the form of the document which is  being requested. Two standard document forms are defined.  <code>"text/plain"</code> encodes the document in a "pretty-print"  format for human viewing and <code>"text/xml"<code> which provides an  XML format. <p/>We don't have any content to add, just build the document instance and return it to implementations that actually do something with it.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../net/jxta/document/ExtendableAdvertisement.html#getDocument(net.jxta.document.MimeMediaType)">getDocument</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></DL></DD></DL><HR><A NAME="getIndexFields()"><!-- --></A><H3>getIndexFields</H3><PRE>public java.lang.String[] <B>getIndexFields</B>()</PRE><DL><DD>returns an array of String fields to index the advertisement on.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/document/Advertisement.html#getIndexFields()">getIndexFields</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>String [] attributes to index this advertisement on.</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/PSEConfigAdv.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;<A HREF="../../../../net/jxta/impl/protocol/PlatformConfig.Instantiator.html" title="class in net.jxta.impl.protocol"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../net/jxta/impl/protocol/PSEConfigAdv.Instantiator.html" title="class in net.jxta.impl.protocol"><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="PSEConfigAdv.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;<A HREF="#nested_class_summary">NESTED</A>&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><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>

⌨️ 快捷键说明

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