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

📄 psecredential.html

📁 jxta的api库
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<P><DL></DL></DL><HR><A NAME="cert"><!-- --></A><H3>cert</H3><PRE>java.security.cert.X509Certificate <B>cert</B></PRE><DL><DD>The identity associated with this credential<P><DL></DL></DL><HR><A NAME="peerid"><!-- --></A><H3>peerid</H3><PRE><A HREF="../../../../../net/jxta/id/ID.html" title="class in net.jxta.id">ID</A> <B>peerid</B></PRE><DL><DD>The peerid associated with this credential.<P><DL></DL></DL><HR><A NAME="privateKey"><!-- --></A><H3>privateKey</H3><PRE>java.security.PrivateKey <B>privateKey</B></PRE><DL><DD>The private key associated with this credential. Used for signing. Only  a locally created credential will have an initialized private key.<P><DL></DL></DL><!-- ========= 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="PSECredential(net.jxta.impl.membership.pse.PSEMembershipService, java.security.cert.X509Certificate, java.security.PrivateKey)"><!-- --></A><H3>PSECredential</H3><PRE>protected <B>PSECredential</B>(<A HREF="../../../../../net/jxta/impl/membership/pse/PSEMembershipService.html" title="class in net.jxta.impl.membership.pse">PSEMembershipService</A>&nbsp;source,                        java.security.cert.X509Certificate&nbsp;cert,                        java.security.PrivateKey&nbsp;privateKey)                 throws java.io.IOException</PRE><DL><DD>Create a new local credential. This credential can be used for signing  and can be serialized.<P></DL><HR><A NAME="PSECredential(net.jxta.impl.membership.pse.PSEMembershipService, net.jxta.document.Element)"><!-- --></A><H3>PSECredential</H3><PRE>protected <B>PSECredential</B>(<A HREF="../../../../../net/jxta/impl/membership/pse/PSEMembershipService.html" title="class in net.jxta.impl.membership.pse">PSEMembershipService</A>&nbsp;source,                        <A HREF="../../../../../net/jxta/document/Element.html" title="interface in net.jxta.document">Element</A>&nbsp;root)</PRE><DL><DD>Create a new remote credential. This credential cannot be used for signing  and cannot be re-serialized.<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="getPeerGroupID()"><!-- --></A><H3>getPeerGroupID</H3><PRE>public <A HREF="../../../../../net/jxta/id/ID.html" title="class in net.jxta.id">ID</A> <B>getPeerGroupID</B>()</PRE><DL><DD>Returns the peerGroupID associated with this credential<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../net/jxta/credential/Credential.html#getPeerGroupID()">getPeerGroupID</A></CODE> in interface <CODE><A HREF="../../../../../net/jxta/credential/Credential.html" title="interface in net.jxta.credential">Credential</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the peerGroupID associated with this credential</DL></DD></DL><HR><A NAME="getPeerID()"><!-- --></A><H3>getPeerID</H3><PRE>public <A HREF="../../../../../net/jxta/id/ID.html" title="class in net.jxta.id">ID</A> <B>getPeerID</B>()</PRE><DL><DD>Returns the peerID associated with this credential<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../net/jxta/credential/Credential.html#getPeerID()">getPeerID</A></CODE> in interface <CODE><A HREF="../../../../../net/jxta/credential/Credential.html" title="interface in net.jxta.credential">Credential</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the peerID associated with this credential</DL></DD></DL><HR><A NAME="isExpired()"><!-- --></A><H3>isExpired</H3><PRE>public boolean <B>isExpired</B>()</PRE><DL><DD>If true then the credential is expired. Some credential implementations  may never epxire. <p/>A PSE Credential is valid as long as the associated certificate is valid.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../net/jxta/credential/Credential.html#isExpired()">isExpired</A></CODE> in interface <CODE><A HREF="../../../../../net/jxta/credential/Credential.html" title="interface in net.jxta.credential">Credential</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="isValid()"><!-- --></A><H3>isValid</H3><PRE>public boolean <B>isValid</B>()</PRE><DL><DD>Returns true if this credential is currently valid. <p/>A PSE Credential is valid as long as the associated certificate is valid.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../net/jxta/credential/Credential.html#isValid()">isValid</A></CODE> in interface <CODE><A HREF="../../../../../net/jxta/credential/Credential.html" title="interface in net.jxta.credential">Credential</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>boolean true if the credential is currently valid, otherwise  false.</DL></DD></DL><HR><A NAME="getSubject()"><!-- --></A><H3>getSubject</H3><PRE>public java.lang.Object <B>getSubject</B>()</PRE><DL><DD>Returns the subject of this credential. The Objects returned <b>must</b>  support <CODE>Object.equals(Object)</CODE> and <CODE>Object.hashCode()</CODE>.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../net/jxta/credential/Credential.html#getSubject()">getSubject</A></CODE> in interface <CODE><A HREF="../../../../../net/jxta/credential/Credential.html" title="interface in net.jxta.credential">Credential</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the subject of the credential as an abstract object.</DL></DD></DL><HR><A NAME="getSourceService()"><!-- --></A><H3>getSourceService</H3><PRE>public <A HREF="../../../../../net/jxta/service/Service.html" title="interface in net.jxta.service">Service</A> <B>getSourceService</B>()</PRE><DL><DD>Returns the service which generated this credential.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../net/jxta/credential/Credential.html#getSourceService()">getSourceService</A></CODE> in interface <CODE><A HREF="../../../../../net/jxta/credential/Credential.html" title="interface in net.jxta.credential">Credential</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the service which generated this credential.</DL></DD></DL><HR><A NAME="getDocument(net.jxta.document.MimeMediaType)"><!-- --></A><H3>getDocument</H3><PRE>public <A HREF="../../../../../net/jxta/document/StructuredDocument.html" title="interface in net.jxta.document">StructuredDocument</A> <B>getDocument</B>(<A HREF="../../../../../net/jxta/document/MimeMediaType.html" title="class in net.jxta.document">MimeMediaType</A>&nbsp;as)                               throws java.lang.Exception</PRE><DL><DD>Write credential 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/>Depending on the credential format this document may be  cryptographically signed to prevent alteration.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../net/jxta/credential/Credential.html#getDocument(net.jxta.document.MimeMediaType)">getDocument</A></CODE> in interface <CODE><A HREF="../../../../../net/jxta/credential/Credential.html" title="interface in net.jxta.credential">Credential</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>as</CODE> - MimeMediaType format representation requested<DT><B>Returns:</B><DD>Document   the document to be used in the construction<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE></DL></DD></DL><HR><A NAME="handleElement(net.jxta.document.XMLElement)"><!-- --></A><H3>handleElement</H3><PRE>protected boolean <B>handleElement</B>(<A HREF="../../../../../net/jxta/document/XMLElement.html" title="interface in net.jxta.document">XMLElement</A>&nbsp;elem)</PRE><DL><DD>Process an individual element from the document.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>elem</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="initialize(net.jxta.document.Element)"><!-- --></A><H3>initialize</H3><PRE>protected void <B>initialize</B>(<A HREF="../../../../../net/jxta/document/Element.html" title="interface in net.jxta.document">Element</A>&nbsp;root)</PRE><DL><DD>Intialize from a portion of a structured document.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getCertificate()"><!-- --></A><H3>getCertificate</H3><PRE>public java.security.cert.Certificate <B>getCertificate</B>()</PRE><DL><DD>Returns the certificate associated with this credential.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the certificate associated with this credential.</DL></DD></DL><HR><A NAME="getPrivateKey()"><!-- --></A><H3>getPrivateKey</H3><PRE>public java.security.PrivateKey <B>getPrivateKey</B>()</PRE><DL><DD>Returns the private key associated with this credential. Only valid for  locally generated credentials.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the private key associated with this credential.</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/PSECredential.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/membership/pse/PSEConfig.html" title="class in net.jxta.impl.membership.pse"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../../net/jxta/impl/membership/pse/PSEDefs.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>  &nbsp;&nbsp;<A HREF="PSECredential.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;<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;<A HREF="#field_detail">FIELD</A>&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 + -