📄 certificate.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc on Wed Sep 24 14:57:50 PDT 2003 -->
<TITLE>
MID Profile: Interface Certificate
</TITLE>
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
</HEAD>
<BODY BGCOLOR="white">
<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_top"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_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-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>
<strong>MID Profile</strong></EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
PREV CLASS
NEXT CLASS</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>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
javax.microedition.pki</FONT>
<BR>
Interface Certificate</H2>
<HR>
<DL>
<DT>public interface <B>Certificate</B></DL>
<P>
Interface common to certificates. The features abstracted of <CODE>Certificates</CODE> include subject, issuer, type, version, serial number, signing algorithm, dates of valid use, and serial number. <p> <b>Printable Representation for Binary Values</b></p> <p> A non-string values in a certificate are represented as strings with each byte as two hex digits (capital letters for A-F) separated by ":" (Unicode U+003A).</p> <p> For example: <tt>0C:56:FA:80</tt></p> <p> <b>Printable Representation for X.509 Distinguished Names</b></p> <p> For a X.509 certificate the value returned is the printable verision of the distingished name (DN) from the certificate.</p> <p> An X.509 distinguished name of is set of attributes, each attribute is a sequence of an object ID and a value. For string comparison purposes, the following rules define a strict printable representation.</p> <p> <ol> <li>There is no added white space around separators.</li> <li>The attributes are in the same order as in the certificate; attributes are not reordered.</li> <li>If an object ID is in the table below, the label from the table will be substituted for the object ID, else the ID is formatted as a string using the binary printable representation above.</li> <li>Each object ID or label and value within an attribute will be separated by a "=" (Unicode U+003D), even if the value is empty.</li> <li>If value is not a string, then it is formatted as a string using the binary printable representation above.</li> <li>Attributes will be separated by a ";" (Unicode U+003B)</li> </ol> </p> <br><b>Labels for X.500 Distinguished Name Attributes</b> <table border="1" cellpadding=4 cellspacing=0 width="100%"> <tr> <th bgcolor="#CCCCFF">Object ID</th> <th bgcolor="#CCCCFF">Binary</th> <th bgcolor="#CCCCFF">Label</th> <tr> <td>id-at-commonName</td> <td><tt>55:04:03</tt></td> <td>CN</td> </tr> <tr> <td>id-at-surname</td> <td><tt>55:04:04</tt></td> <td>SN</td> </tr> <tr> <td>id-at-countryName</td> <td><tt>55:04:06</tt></td> <td>C</td> </tr> <tr> <td>id-at-localityName</td> <td><tt>55:04:07</tt></td> <td>L</td> </tr> <tr> <td>id-at-stateOrProvinceName</td> <td><tt>55:04:08</tt></td> <td>ST</td> </tr> <tr> <td>id-at-streetAddress</td> <td><tt>55:04:09</tt></td> <td>STREET</td> </tr> <tr> <td>id-at-organizationName</td> <td><tt>55:04:0A</tt></td> <td>O</td> </tr> <tr> <td>id-at-organizationUnitName</td> <td><tt>55:04:0B</tt></td> <td>OU</td> </tr> <tr> <td>emailAddress</td> <td><tt>2A:86:48:86:F7:0D:01:09:01</tt></td> <td>EmailAddress</td> </tr> </table> <p> Example of a printable distinguished name:</p> <blockquote> <tt>C=US;O=Any Company, Inc.;CN=www.anycompany.com</tt></blockquote>
<P>
<DL>
<DT><B>Since: </B><DD>MIDP 2.0</DD>
</DL>
<HR>
<P>
<!-- ======== INNER CLASS SUMMARY ======== -->
<!-- =========== FIELD SUMMARY =========== -->
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<!-- ========== METHOD SUMMARY =========== -->
<A NAME="method_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Method Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../java/lang/String.html">String</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/microedition/pki/Certificate.html#getIssuer()">getIssuer</A></B>()</CODE>
<BR>
Gets the name of this certificate's issuer.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> long</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/microedition/pki/Certificate.html#getNotAfter()">getNotAfter</A></B>()</CODE>
<BR>
Gets the time after which this <CODE>Certificate</CODE> may not be used from the validity period.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> long</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/microedition/pki/Certificate.html#getNotBefore()">getNotBefore</A></B>()</CODE>
<BR>
Gets the time before which this <CODE>Certificate</CODE> may not be used from the validity period.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../java/lang/String.html">String</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/microedition/pki/Certificate.html#getSerialNumber()">getSerialNumber</A></B>()</CODE>
<BR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -