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

📄 certificate.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="Certificate(java.lang.String)"><!-- --></A><H3>Certificate</H3><PRE>protected <B>Certificate</B>(<A HREF="../../../java/lang/String.html">String</A>&nbsp;type)</PRE><DL><DD>Creates a certificate of the specified type.<DD><DL><DT><B>Parameters:</B><DD><CODE>type</CODE> - the standard name of the certificate type. See Appendix A in the <a href= "../../../../guide/security/CryptoSpec.html#AppA"> Java Cryptography Architecture API Specification &amp; Reference </a> for information about standard certificate types.</DL></DD></DL><!-- ============ 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="getType()"><!-- --></A><H3>getType</H3><PRE>public final <A HREF="../../../java/lang/String.html">String</A> <B>getType</B>()</PRE><DL><DD>Returns the type of this certificate.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the type of this certificate.</DL></DD></DL><HR><A NAME="equals(java.lang.Object)"><!-- --></A><H3>equals</H3><PRE>public boolean <B>equals</B>(<A HREF="../../../java/lang/Object.html">Object</A>&nbsp;other)</PRE><DL><DD>Compares this certificate for equality with the specified object. If the <code>other</code> object is an <code>instanceof</code> <code>Certificate</code>, then its encoded form is retrieved and compared with the encoded form of this certificate.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../java/lang/Object.html#equals(java.lang.Object)">equals</A></CODE> in class <CODE><A HREF="../../../java/lang/Object.html">Object</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>other</CODE> - the object to test for equality with this certificate.<DT><B>Returns:</B><DD>true iff the encoded forms of the two certificates match, false otherwise.</DL></DD></DL><HR><A NAME="hashCode()"><!-- --></A><H3>hashCode</H3><PRE>public int <B>hashCode</B>()</PRE><DL><DD>Returns a hashcode value for this certificate from its encoded form.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../java/lang/Object.html#hashCode()">hashCode</A></CODE> in class <CODE><A HREF="../../../java/lang/Object.html">Object</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the hashcode value.</DL></DD></DL><HR><A NAME="getEncoded()"><!-- --></A><H3>getEncoded</H3><PRE>public abstract byte[] <B>getEncoded</B>()                           throws <A HREF="../../../java/security/cert/CertificateEncodingException.html">CertificateEncodingException</A></PRE><DL><DD>Returns the encoded form of this certificate. It is assumed that each certificate type would have only a single form of encoding; for example, X.509 certificates would be encoded as ASN.1 DER.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the encoded form of this certificate<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/security/cert/CertificateEncodingException.html">CertificateEncodingException</A></CODE> - if an encoding error occurs.</DL></DD></DL><HR><A NAME="verify(java.security.PublicKey)"><!-- --></A><H3>verify</H3><PRE>public abstract void <B>verify</B>(<A HREF="../../../java/security/PublicKey.html">PublicKey</A>&nbsp;key)                     throws <A HREF="../../../java/security/cert/CertificateException.html">CertificateException</A>,                            <A HREF="../../../java/security/NoSuchAlgorithmException.html">NoSuchAlgorithmException</A>,                            <A HREF="../../../java/security/InvalidKeyException.html">InvalidKeyException</A>,                            <A HREF="../../../java/security/NoSuchProviderException.html">NoSuchProviderException</A>,                            <A HREF="../../../java/security/SignatureException.html">SignatureException</A></PRE><DL><DD>Verifies that this certificate was signed using the private key that corresponds to the specified public key.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>key</CODE> - the PublicKey used to carry out the verification.<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/security/NoSuchAlgorithmException.html">NoSuchAlgorithmException</A></CODE> - on unsupported signature algorithms.<DD><CODE><A HREF="../../../java/security/InvalidKeyException.html">InvalidKeyException</A></CODE> - on incorrect key.<DD><CODE><A HREF="../../../java/security/NoSuchProviderException.html">NoSuchProviderException</A></CODE> - if there's no default provider.<DD><CODE><A HREF="../../../java/security/SignatureException.html">SignatureException</A></CODE> - on signature errors.<DD><CODE><A HREF="../../../java/security/cert/CertificateException.html">CertificateException</A></CODE> - on encoding errors.</DL></DD></DL><HR><A NAME="verify(java.security.PublicKey, java.lang.String)"><!-- --></A><H3>verify</H3><PRE>public abstract void <B>verify</B>(<A HREF="../../../java/security/PublicKey.html">PublicKey</A>&nbsp;key,                            <A HREF="../../../java/lang/String.html">String</A>&nbsp;sigProvider)                     throws <A HREF="../../../java/security/cert/CertificateException.html">CertificateException</A>,                            <A HREF="../../../java/security/NoSuchAlgorithmException.html">NoSuchAlgorithmException</A>,                            <A HREF="../../../java/security/InvalidKeyException.html">InvalidKeyException</A>,                            <A HREF="../../../java/security/NoSuchProviderException.html">NoSuchProviderException</A>,                            <A HREF="../../../java/security/SignatureException.html">SignatureException</A></PRE><DL><DD>Verifies that this certificate was signed using the private key that corresponds to the specified public key. This method uses the signature verification engine supplied by the specified provider.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>key</CODE> - the PublicKey used to carry out the verification.<DD><CODE>sigProvider</CODE> - the name of the signature provider.<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/security/NoSuchAlgorithmException.html">NoSuchAlgorithmException</A></CODE> - on unsupported signature algorithms.<DD><CODE><A HREF="../../../java/security/InvalidKeyException.html">InvalidKeyException</A></CODE> - on incorrect key.<DD><CODE><A HREF="../../../java/security/NoSuchProviderException.html">NoSuchProviderException</A></CODE> - on incorrect provider.<DD><CODE><A HREF="../../../java/security/SignatureException.html">SignatureException</A></CODE> - on signature errors.<DD><CODE><A HREF="../../../java/security/cert/CertificateException.html">CertificateException</A></CODE> - on encoding errors.</DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public abstract <A HREF="../../../java/lang/String.html">String</A> <B>toString</B>()</PRE><DL><DD>Returns a string representation of this certificate.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../java/lang/Object.html#toString()">toString</A></CODE> in class <CODE><A HREF="../../../java/lang/Object.html">Object</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a string representation of this certificate.</DL></DD></DL><HR><A NAME="getPublicKey()"><!-- --></A><H3>getPublicKey</H3><PRE>public abstract <A HREF="../../../java/security/PublicKey.html">PublicKey</A> <B>getPublicKey</B>()</PRE><DL><DD>Gets the public key from this certificate.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the public key.</DL></DD></DL><HR><A NAME="writeReplace()"><!-- --></A><H3>writeReplace</H3><PRE>protected <A HREF="../../../java/lang/Object.html">Object</A> <B>writeReplace</B>()                       throws <A HREF="../../../java/io/ObjectStreamException.html">ObjectStreamException</A></PRE><DL><DD>Replace the Certificate to be serialized.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the alternate Certificate object to be serialized.<DT><B>Throws:</B><DD><CODE>ObjectStreamException</CODE> - if a new object representing this certificate could not be created</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>&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/Certificate.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-files/index-1.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><b>Java<sup><font size=-2>TM</font></sup>&nbsp;2&nbsp;Platform<br>Std.&nbsp;Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;PREV CLASS&nbsp;&nbsp;<A HREF="../../../java/security/cert/Certificate.CertificateRep.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>  &nbsp;&nbsp;<A HREF="Certificate.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;<A HREF="#inner_class_summary">INNER</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><!-- =========== 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 + -