📄 pseconfig.html
字号:
<A NAME="PSEConfig(java.io.File)"><!-- --></A><H3>PSEConfig</H3><PRE>public <B>PSEConfig</B>(java.io.File homeDir)</PRE><DL><DD>Standard Constructor<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="isInitialized(java.io.File)"><!-- --></A><H3>isInitialized</H3><PRE>public static boolean <B>isInitialized</B>(java.io.File homeDir)</PRE><DL><DD>Return true if there is no valid PSE at the location specified by <code>homeDir</code>.<P><DD><DL></DL></DD></DL><HR><A NAME="isInitialized()"><!-- --></A><H3>isInitialized</H3><PRE>public boolean <B>isInitialized</B>()</PRE><DL><DD>Returns true if the PSE needs to be configured before it can be used.<P><DD><DL></DL></DD></DL><HR><A NAME="initialize(java.lang.String, java.lang.String, java.security.cert.Certificate, java.security.PrivateKey)"><!-- --></A><H3>initialize</H3><PRE>public void <B>initialize</B>(java.lang.String principal, java.lang.String password, java.security.cert.Certificate cert, java.security.PrivateKey privkey) throws java.io.IOException</PRE><DL><DD>Create a new PSE enviroment.<P><DD><DL><DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="erase()"><!-- --></A><H3>erase</H3><PRE>public void <B>erase</B>() throws java.io.IOException</PRE><DL><DD>Remove an existing PSE enviroment.<P><DD><DL><DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="validPasswd(java.lang.String)"><!-- --></A><H3>validPasswd</H3><PRE>public boolean <B>validPasswd</B>(java.lang.String passwd)</PRE><DL><DD>Check for valid password. Creates a password entry and compare it to current entry<P><DD><DL></DL></DD></DL><HR><A NAME="getPasswordEntry()"><!-- --></A><H3>getPasswordEntry</H3><PRE>java.lang.String <B>getPasswordEntry</B>() throws java.io.IOException</PRE><DL><DD>Return a password entry from the password file in base64<P><DD><DL><DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="makePasswdEntry(java.lang.String, byte[])"><!-- --></A><H3>makePasswdEntry</H3><PRE>java.lang.String <B>makePasswdEntry</B>(java.lang.String passwd, byte[] useThisSalt) throws java.io.IOException</PRE><DL><DD>Given a password String, make the entry to write in the password file. <p/>Uses a KDF similar to that used by PKCS #5. Should eventually be converted to PBKDF2.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>passwd</CODE> - The password to encrypt.<DD><CODE>useThisSalt</CODE> - The salt to use in encrypting the password.<DT><B>Returns:</B><DD>a String containing the salt and the encrpyted password. Each portion is BASE64 encoded. Fromat is : <SALT-BASE64>,<ENCRYPTED-PASSWORD-BASE64><DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="principalIsIssuer(java.lang.String, net.jxta.id.ID)"><!-- --></A><H3>principalIsIssuer</H3><PRE>public boolean <B>principalIsIssuer</B>(java.lang.String principal, <A HREF="../../../../../net/jxta/id/ID.html" title="class in net.jxta.id">ID</A> certID)</PRE><DL><DD>Compare the provided name to ensure that it is the issuer of the specified cert. This is done by comparing against the value of the "CN" String.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>principal</CODE> - The principal name.<DD><CODE>certID</CODE> - The id of the cert to check.</DL></DD></DL><HR><A NAME="getPeerRootCert()"><!-- --></A><H3>getPeerRootCert</H3><PRE>public java.lang.String <B>getPeerRootCert</B>() throws java.io.IOException</PRE><DL><DD>Returns the root certificiate for this peer.<P><DD><DL><DT><B>Returns:</B><DD>the root certificate in BASE64 form.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="readRootCert(net.jxta.id.ID)"><!-- --></A><H3>readRootCert</H3><PRE>public java.security.cert.Certificate <B>readRootCert</B>(<A HREF="../../../../../net/jxta/id/ID.html" title="class in net.jxta.id">ID</A> id) throws java.io.IOException</PRE><DL><DD>Returns the root cert for the specified id.<P><DD><DL><DT><B>Returns:</B><DD>Certificate for the specified ID.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="writeRootCert(net.jxta.id.ID, java.security.cert.Certificate)"><!-- --></A><H3>writeRootCert</H3><PRE>public void <B>writeRootCert</B>(<A HREF="../../../../../net/jxta/id/ID.html" title="class in net.jxta.id">ID</A> id, java.security.cert.Certificate cert) throws java.io.IOException</PRE><DL><DD>Returns the root cert for the specified id.<P><DD><DL><DT><B>Returns:</B><DD>Certificate for the specified ID.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="getRootCertFile(net.jxta.id.ID)"><!-- --></A><H3>getRootCertFile</H3><PRE>public java.io.File <B>getRootCertFile</B>(<A HREF="../../../../../net/jxta/id/ID.html" title="class in net.jxta.id">ID</A> id)</PRE><DL><DD><B>Deprecated.</B> <I>The file returned may be a temp file. Use of this API is strongly discouraged.</I><P><DD>Returns a File object containing the root cert for the specified id/<P><DD><DL><DT><B>Returns:</B><DD>File object for the specified cert.</DL></DD></DL><HR><A NAME="readClientCert(net.jxta.id.ID)"><!-- --></A><H3>readClientCert</H3><PRE>public java.security.cert.Certificate <B>readClientCert</B>(<A HREF="../../../../../net/jxta/id/ID.html" title="class in net.jxta.id">ID</A> id) throws java.io.IOException</PRE><DL><DD>Returns the client cert for the specified id.<P><DD><DL><DT><B>Returns:</B><DD>Certificate for the specified ID.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="writeClientCert(net.jxta.id.ID, java.security.cert.Certificate)"><!-- --></A><H3>writeClientCert</H3><PRE>public void <B>writeClientCert</B>(<A HREF="../../../../../net/jxta/id/ID.html" title="class in net.jxta.id">ID</A> id, java.security.cert.Certificate cert) throws java.io.IOException</PRE><DL><DD>Returns the root cert for the specified id.<P><DD><DL><DT><B>Returns:</B><DD>Certificate for the specified ID.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="getClientCertFile(net.jxta.id.ID)"><!-- --></A><H3>getClientCertFile</H3><PRE>public java.io.File <B>getClientCertFile</B>(<A HREF="../../../../../net/jxta/id/ID.html" title="class in net.jxta.id">ID</A> id)</PRE><DL><DD><B>Deprecated.</B> <I>The file returned may be a temp file. Use of this API is strongly discouraged.</I><P><DD>Returns a File object containing the client cert for the specified id<P><DD><DL><DT><B>Returns:</B><DD>File object for the specified cert.</DL></DD></DL><HR><A NAME="readPassphrase(java.lang.String)"><!-- --></A><H3>readPassphrase</H3><PRE>public java.lang.String <B>readPassphrase</B>(java.lang.String password) throws java.io.IOException</PRE><DL><DD>Read base64 encoded using the provided password.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>password</CODE> - the password to use in decrypting the passphrase.<DT><B>Throws:</B><DD><CODE>java.io.IOException</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> </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/PSEConfig.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-all.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>JXTA J2SE</EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../net/jxta/impl/membership/pse/DialogAuthenticator.html" title="class in net.jxta.impl.membership.pse"><B>PREV CLASS</B></A> <A HREF="../../../../../net/jxta/impl/membership/pse/PSECredential.html" title="class in net.jxta.impl.membership.pse"><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="PSEConfig.html" target="_top"><B>NO FRAMES</B></A> <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: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <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 + -