📄 certificate.html
字号:
<BR> <B>Deprecated.</B> Returns a string that represents the contents of the certificate.</TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="getGuarantor()"><!-- --></A><H3>getGuarantor</H3><PRE>public <A HREF="../../java/security/Principal.html">Principal</A> <B>getGuarantor</B>()</PRE><DL><DD><B>Deprecated.</B> <DD>Returns the guarantor of the certificate, that is, the principal guaranteeing that the public key associated with this certificate is that of the principal associated with this certificate. For X.509 certificates, the guarantor will typically be a Certificate Authority (such as the United States Postal Service or Verisign, Inc.).<DD><DL><DT><B>Returns:</B><DD>the guarantor which guaranteed the principal-key binding.</DL></DD></DL><HR><A NAME="getPrincipal()"><!-- --></A><H3>getPrincipal</H3><PRE>public <A HREF="../../java/security/Principal.html">Principal</A> <B>getPrincipal</B>()</PRE><DL><DD><B>Deprecated.</B> <DD>Returns the principal of the principal-key pair being guaranteed by the guarantor.<DD><DL><DT><B>Returns:</B><DD>the principal to which this certificate is bound.</DL></DD></DL><HR><A NAME="getPublicKey()"><!-- --></A><H3>getPublicKey</H3><PRE>public <A HREF="../../java/security/PublicKey.html">PublicKey</A> <B>getPublicKey</B>()</PRE><DL><DD><B>Deprecated.</B> <DD>Returns the key of the principal-key pair being guaranteed by the guarantor.<DD><DL><DT><B>Returns:</B><DD>the public key that this certificate certifies belongs to a particular principal.</DL></DD></DL><HR><A NAME="encode(java.io.OutputStream)"><!-- --></A><H3>encode</H3><PRE>public void <B>encode</B>(<A HREF="../../java/io/OutputStream.html">OutputStream</A> stream) throws <A HREF="../../java/security/KeyException.html">KeyException</A>, <A HREF="../../java/io/IOException.html">IOException</A></PRE><DL><DD><B>Deprecated.</B> <DD>Encodes the certificate to an output stream in a format that can be decoded by the <code>decode</code> method.<DD><DL><DT><B>Parameters:</B><DD><CODE>stream</CODE> - the output stream to which to encode the certificate.<DT><B>Throws:</B><DD><CODE><A HREF="../../java/security/KeyException.html">KeyException</A></CODE> - if the certificate is not properly initialized, or data is missing, etc.<DD><CODE><A HREF="../../java/io/IOException.html">IOException</A></CODE> - if a stream exception occurs while trying to output the encoded certificate to the output stream.<DT><B>See Also: </B><DD><A HREF="../../java/security/Certificate.html#decode(java.io.InputStream)"><CODE>decode(java.io.InputStream)</CODE></A>, <A HREF="../../java/security/Certificate.html#getFormat()"><CODE>getFormat()</CODE></A></DL></DD></DL><HR><A NAME="decode(java.io.InputStream)"><!-- --></A><H3>decode</H3><PRE>public void <B>decode</B>(<A HREF="../../java/io/InputStream.html">InputStream</A> stream) throws <A HREF="../../java/security/KeyException.html">KeyException</A>, <A HREF="../../java/io/IOException.html">IOException</A></PRE><DL><DD><B>Deprecated.</B> <DD>Decodes a certificate from an input stream. The format should be that returned by <code>getFormat</code> and produced by <code>encode</code>.<DD><DL><DT><B>Parameters:</B><DD><CODE>stream</CODE> - the input stream from which to fetch the data being decoded.<DT><B>Throws:</B><DD><CODE><A HREF="../../java/security/KeyException.html">KeyException</A></CODE> - if the certificate is not properly initialized, or data is missing, etc.<DD><CODE><A HREF="../../java/io/IOException.html">IOException</A></CODE> - if an exception occurs while trying to input the encoded certificate from the input stream.<DT><B>See Also: </B><DD><A HREF="../../java/security/Certificate.html#encode(java.io.OutputStream)"><CODE>encode(java.io.OutputStream)</CODE></A>, <A HREF="../../java/security/Certificate.html#getFormat()"><CODE>getFormat()</CODE></A></DL></DD></DL><HR><A NAME="getFormat()"><!-- --></A><H3>getFormat</H3><PRE>public <A HREF="../../java/lang/String.html">String</A> <B>getFormat</B>()</PRE><DL><DD><B>Deprecated.</B> <DD>Returns the name of the coding format. This is used as a hint to find an appropriate parser. It could be "X.509", "PGP", etc. This is the format produced and understood by the <code>encode</code> and <code>decode</code> methods.<DD><DL><DT><B>Returns:</B><DD>the name of the coding format.</DL></DD></DL><HR><A NAME="toString(boolean)"><!-- --></A><H3>toString</H3><PRE>public <A HREF="../../java/lang/String.html">String</A> <B>toString</B>(boolean detailed)</PRE><DL><DD><B>Deprecated.</B> <DD>Returns a string that represents the contents of the certificate.<DD><DL><DT><B>Parameters:</B><DD><CODE>detailed</CODE> - whether or not to give detailed information about the certificate.</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <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/Certificate.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-files/index-1.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><b>Java<sup><font size=-2>TM</font></sup> 2 Platform<br>Std. Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> PREV CLASS <A HREF="../../java/security/DomainCombiner.html"><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="Certificate.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><font size="-1"><a href="http://java.sun.com/cgi-bin/bugreport.cgi">Submit a bug or feature</a><br>For further API reference and developer documentation, see <a href="http://java.sun.com/products/jdk/1.3/devdocs-vs-specs.html">Java 2 SDK SE Developer Documentation</a>. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. <p>Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.<br>Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road<br>Palo Alto, California, 94303, U.S.A. All Rights Reserved.</font></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -