/lib/bouncycastle/docs/org/bouncycastle/asn1/DERUTCTime.html

https://bitbucket.org/arkban/somersault · HTML · 525 lines · 451 code · 51 blank · 23 comment · 0 complexity · 1c78540bcefcecd242d770afd99915c2 MD5 · raw file

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <!--NewPage-->
  3. <HTML>
  4. <HEAD>
  5. <!-- Generated by javadoc (build 1.6.0) on Mon Jan 11 13:46:33 EST 2010 -->
  6. <TITLE>
  7. DERUTCTime (Bouncy Castle Library 1.45 API Specification)
  8. </TITLE>
  9. <META NAME="date" CONTENT="2010-01-11">
  10. <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
  11. <SCRIPT type="text/javascript">
  12. function windowTitle()
  13. {
  14. if (location.href.indexOf('is-external=true') == -1) {
  15. parent.document.title="DERUTCTime (Bouncy Castle Library 1.45 API Specification)";
  16. }
  17. }
  18. </SCRIPT>
  19. <NOSCRIPT>
  20. </NOSCRIPT>
  21. </HEAD>
  22. <BODY BGCOLOR="white" onload="windowTitle();">
  23. <HR>
  24. <!-- ========= START OF TOP NAVBAR ======= -->
  25. <A NAME="navbar_top"><!-- --></A>
  26. <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
  27. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  28. <TR>
  29. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  30. <A NAME="navbar_top_firstrow"><!-- --></A>
  31. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  32. <TR ALIGN="center" VALIGN="top">
  33. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  34. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  35. <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  36. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  37. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  38. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  39. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  40. </TR>
  41. </TABLE>
  42. </TD>
  43. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  44. <b>Bouncy Castle Cryptography Library 1.45</b></EM>
  45. </TD>
  46. </TR>
  47. <TR>
  48. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  49. &nbsp;<A HREF="../../../org/bouncycastle/asn1/DERUnknownTag.html" title="class in org.bouncycastle.asn1"><B>PREV CLASS</B></A>&nbsp;
  50. &nbsp;<A HREF="../../../org/bouncycastle/asn1/DERUTF8String.html" title="class in org.bouncycastle.asn1"><B>NEXT CLASS</B></A></FONT></TD>
  51. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  52. <A HREF="../../../index.html?org/bouncycastle/asn1/DERUTCTime.html" target="_top"><B>FRAMES</B></A> &nbsp;
  53. &nbsp;<A HREF="DERUTCTime.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  54. &nbsp;<SCRIPT type="text/javascript">
  55. <!--
  56. if(window==top) {
  57. document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
  58. }
  59. //-->
  60. </SCRIPT>
  61. <NOSCRIPT>
  62. <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
  63. </NOSCRIPT>
  64. </FONT></TD>
  65. </TR>
  66. <TR>
  67. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  68. SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_org.bouncycastle.asn1.ASN1Encodable">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  69. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  70. DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  71. </TR>
  72. </TABLE>
  73. <A NAME="skip-navbar_top"></A>
  74. <!-- ========= END OF TOP NAVBAR ========= -->
  75. <HR>
  76. <!-- ======== START OF CLASS DATA ======== -->
  77. <H2>
  78. <FONT SIZE="-1">
  79. org.bouncycastle.asn1</FONT>
  80. <BR>
  81. Class DERUTCTime</H2>
  82. <PRE>
  83. java.lang.Object
  84. <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../org/bouncycastle/asn1/ASN1Encodable.html" title="class in org.bouncycastle.asn1">org.bouncycastle.asn1.ASN1Encodable</A>
  85. <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../org/bouncycastle/asn1/DERObject.html" title="class in org.bouncycastle.asn1">org.bouncycastle.asn1.DERObject</A>
  86. <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../org/bouncycastle/asn1/ASN1Object.html" title="class in org.bouncycastle.asn1">org.bouncycastle.asn1.ASN1Object</A>
  87. <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>org.bouncycastle.asn1.DERUTCTime</B>
  88. </PRE>
  89. <DL>
  90. <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../org/bouncycastle/asn1/DEREncodable.html" title="interface in org.bouncycastle.asn1">DEREncodable</A>, <A HREF="../../../org/bouncycastle/asn1/DERTags.html" title="interface in org.bouncycastle.asn1">DERTags</A></DD>
  91. </DL>
  92. <HR>
  93. <DL>
  94. <DT><PRE>public class <B>DERUTCTime</B><DT>extends <A HREF="../../../org/bouncycastle/asn1/ASN1Object.html" title="class in org.bouncycastle.asn1">ASN1Object</A></DL>
  95. </PRE>
  96. <P>
  97. UTC time object.
  98. <P>
  99. <P>
  100. <HR>
  101. <P>
  102. <!-- =========== FIELD SUMMARY =========== -->
  103. <A NAME="field_summary"><!-- --></A>
  104. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  105. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  106. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  107. <B>Field Summary</B></FONT></TH>
  108. </TR>
  109. </TABLE>
  110. &nbsp;<A NAME="fields_inherited_from_class_org.bouncycastle.asn1.ASN1Encodable"><!-- --></A>
  111. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  112. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  113. <TH ALIGN="left"><B>Fields inherited from class org.bouncycastle.asn1.<A HREF="../../../org/bouncycastle/asn1/ASN1Encodable.html" title="class in org.bouncycastle.asn1">ASN1Encodable</A></B></TH>
  114. </TR>
  115. <TR BGCOLOR="white" CLASS="TableRowColor">
  116. <TD><CODE><A HREF="../../../org/bouncycastle/asn1/ASN1Encodable.html#BER">BER</A>, <A HREF="../../../org/bouncycastle/asn1/ASN1Encodable.html#DER">DER</A></CODE></TD>
  117. </TR>
  118. </TABLE>
  119. &nbsp;<A NAME="fields_inherited_from_class_org.bouncycastle.asn1.DERTags"><!-- --></A>
  120. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  121. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  122. <TH ALIGN="left"><B>Fields inherited from interface org.bouncycastle.asn1.<A HREF="../../../org/bouncycastle/asn1/DERTags.html" title="interface in org.bouncycastle.asn1">DERTags</A></B></TH>
  123. </TR>
  124. <TR BGCOLOR="white" CLASS="TableRowColor">
  125. <TD><CODE><A HREF="../../../org/bouncycastle/asn1/DERTags.html#APPLICATION">APPLICATION</A>, <A HREF="../../../org/bouncycastle/asn1/DERTags.html#BIT_STRING">BIT_STRING</A>, <A HREF="../../../org/bouncycastle/asn1/DERTags.html#BMP_STRING">BMP_STRING</A>, <A HREF="../../../org/bouncycastle/asn1/DERTags.html#BOOLEAN">BOOLEAN</A>, <A HREF="../../../org/bouncycastle/asn1/DERTags.html#CONSTRUCTED">CONSTRUCTED</A>, <A HREF="../../../org/bouncycastle/asn1/DERTags.html#ENUMERATED">ENUMERATED</A>, <A HREF="../../../org/bouncycastle/asn1/DERTags.html#EXTERNAL">EXTERNAL</A>, <A HREF="../../../org/bouncycastle/asn1/DERTags.html#GENERAL_STRING">GENERAL_STRING</A>, <A HREF="../../../org/bouncycastle/asn1/DERTags.html#GENERALIZED_TIME">GENERALIZED_TIME</A>, <A HREF="../../../org/bouncycastle/asn1/DERTags.html#GRAPHIC_STRING">GRAPHIC_STRING</A>, <A HREF="../../../org/bouncycastle/asn1/DERTags.html#IA5_STRING">IA5_STRING</A>, <A HREF="../../../org/bouncycastle/asn1/DERTags.html#INTEGER">INTEGER</A>, <A HREF="../../../org/bouncycastle/asn1/DERTags.html#NULL">NULL</A>, <A HREF="../../../org/bouncycastle/asn1/DERTags.html#NUMERIC_STRING">NUMERIC_STRING</A>, <A HREF="../../../org/bouncycastle/asn1/DERTags.html#OBJECT_IDENTIFIER">OBJECT_IDENTIFIER</A>, <A HREF="../../../org/bouncycastle/asn1/DERTags.html#OCTET_STRING">OCTET_STRING</A>, <A HREF="../../../org/bouncycastle/asn1/DERTags.html#PRINTABLE_STRING">PRINTABLE_STRING</A>, <A HREF="../../../org/bouncycastle/asn1/DERTags.html#SEQUENCE">SEQUENCE</A>, <A HREF="../../../org/bouncycastle/asn1/DERTags.html#SEQUENCE_OF">SEQUENCE_OF</A>, <A HREF="../../../org/bouncycastle/asn1/DERTags.html#SET">SET</A>, <A HREF="../../../org/bouncycastle/asn1/DERTags.html#SET_OF">SET_OF</A>, <A HREF="../../../org/bouncycastle/asn1/DERTags.html#T61_STRING">T61_STRING</A>, <A HREF="../../../org/bouncycastle/asn1/DERTags.html#TAGGED">TAGGED</A>, <A HREF="../../../org/bouncycastle/asn1/DERTags.html#UNIVERSAL_STRING">UNIVERSAL_STRING</A>, <A HREF="../../../org/bouncycastle/asn1/DERTags.html#UTC_TIME">UTC_TIME</A>, <A HREF="../../../org/bouncycastle/asn1/DERTags.html#UTF8_STRING">UTF8_STRING</A>, <A HREF="../../../org/bouncycastle/asn1/DERTags.html#VIDEOTEX_STRING">VIDEOTEX_STRING</A>, <A HREF="../../../org/bouncycastle/asn1/DERTags.html#VISIBLE_STRING">VISIBLE_STRING</A></CODE></TD>
  126. </TR>
  127. </TABLE>
  128. &nbsp;
  129. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  130. <A NAME="constructor_summary"><!-- --></A>
  131. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  132. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  133. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  134. <B>Constructor Summary</B></FONT></TH>
  135. </TR>
  136. <TR BGCOLOR="white" CLASS="TableRowColor">
  137. <TD><CODE><B><A HREF="../../../org/bouncycastle/asn1/DERUTCTime.html#DERUTCTime(java.util.Date)">DERUTCTime</A></B>(java.util.Date&nbsp;time)</CODE>
  138. <BR>
  139. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;base constructer from a java.util.date object</TD>
  140. </TR>
  141. <TR BGCOLOR="white" CLASS="TableRowColor">
  142. <TD><CODE><B><A HREF="../../../org/bouncycastle/asn1/DERUTCTime.html#DERUTCTime(java.lang.String)">DERUTCTime</A></B>(java.lang.String&nbsp;time)</CODE>
  143. <BR>
  144. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The correct format for this is YYMMDDHHMMSSZ (it used to be that seconds were
  145. never encoded.</TD>
  146. </TR>
  147. </TABLE>
  148. &nbsp;
  149. <!-- ========== METHOD SUMMARY =========== -->
  150. <A NAME="method_summary"><!-- --></A>
  151. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  152. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  153. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  154. <B>Method Summary</B></FONT></TH>
  155. </TR>
  156. <TR BGCOLOR="white" CLASS="TableRowColor">
  157. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  158. <CODE>&nbsp;java.util.Date</CODE></FONT></TD>
  159. <TD><CODE><B><A HREF="../../../org/bouncycastle/asn1/DERUTCTime.html#getAdjustedDate()">getAdjustedDate</A></B>()</CODE>
  160. <BR>
  161. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return the time as an adjusted date
  162. in the range of 1950 - 2049.</TD>
  163. </TR>
  164. <TR BGCOLOR="white" CLASS="TableRowColor">
  165. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  166. <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
  167. <TD><CODE><B><A HREF="../../../org/bouncycastle/asn1/DERUTCTime.html#getAdjustedTime()">getAdjustedTime</A></B>()</CODE>
  168. <BR>
  169. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return a time string as an adjusted date with a 4 digit year.</TD>
  170. </TR>
  171. <TR BGCOLOR="white" CLASS="TableRowColor">
  172. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  173. <CODE>&nbsp;java.util.Date</CODE></FONT></TD>
  174. <TD><CODE><B><A HREF="../../../org/bouncycastle/asn1/DERUTCTime.html#getDate()">getDate</A></B>()</CODE>
  175. <BR>
  176. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return the time as a date based on whatever a 2 digit year will return.</TD>
  177. </TR>
  178. <TR BGCOLOR="white" CLASS="TableRowColor">
  179. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  180. <CODE>static&nbsp;<A HREF="../../../org/bouncycastle/asn1/DERUTCTime.html" title="class in org.bouncycastle.asn1">DERUTCTime</A></CODE></FONT></TD>
  181. <TD><CODE><B><A HREF="../../../org/bouncycastle/asn1/DERUTCTime.html#getInstance(org.bouncycastle.asn1.ASN1TaggedObject, boolean)">getInstance</A></B>(<A HREF="../../../org/bouncycastle/asn1/ASN1TaggedObject.html" title="class in org.bouncycastle.asn1">ASN1TaggedObject</A>&nbsp;obj,
  182. boolean&nbsp;explicit)</CODE>
  183. <BR>
  184. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return an UTC Time from a tagged object.</TD>
  185. </TR>
  186. <TR BGCOLOR="white" CLASS="TableRowColor">
  187. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  188. <CODE>static&nbsp;<A HREF="../../../org/bouncycastle/asn1/DERUTCTime.html" title="class in org.bouncycastle.asn1">DERUTCTime</A></CODE></FONT></TD>
  189. <TD><CODE><B><A HREF="../../../org/bouncycastle/asn1/DERUTCTime.html#getInstance(java.lang.Object)">getInstance</A></B>(java.lang.Object&nbsp;obj)</CODE>
  190. <BR>
  191. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return an UTC Time from the passed in object.</TD>
  192. </TR>
  193. <TR BGCOLOR="white" CLASS="TableRowColor">
  194. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  195. <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
  196. <TD><CODE><B><A HREF="../../../org/bouncycastle/asn1/DERUTCTime.html#getTime()">getTime</A></B>()</CODE>
  197. <BR>
  198. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return the time - always in the form of
  199. YYMMDDhhmmssGMT(+hh:mm|-hh:mm).</TD>
  200. </TR>
  201. <TR BGCOLOR="white" CLASS="TableRowColor">
  202. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  203. <CODE>&nbsp;int</CODE></FONT></TD>
  204. <TD><CODE><B><A HREF="../../../org/bouncycastle/asn1/DERUTCTime.html#hashCode()">hashCode</A></B>()</CODE>
  205. <BR>
  206. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  207. </TR>
  208. <TR BGCOLOR="white" CLASS="TableRowColor">
  209. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  210. <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
  211. <TD><CODE><B><A HREF="../../../org/bouncycastle/asn1/DERUTCTime.html#toString()">toString</A></B>()</CODE>
  212. <BR>
  213. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  214. </TR>
  215. </TABLE>
  216. &nbsp;<A NAME="methods_inherited_from_class_org.bouncycastle.asn1.ASN1Object"><!-- --></A>
  217. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  218. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  219. <TH ALIGN="left"><B>Methods inherited from class org.bouncycastle.asn1.<A HREF="../../../org/bouncycastle/asn1/ASN1Object.html" title="class in org.bouncycastle.asn1">ASN1Object</A></B></TH>
  220. </TR>
  221. <TR BGCOLOR="white" CLASS="TableRowColor">
  222. <TD><CODE><A HREF="../../../org/bouncycastle/asn1/ASN1Object.html#equals(java.lang.Object)">equals</A>, <A HREF="../../../org/bouncycastle/asn1/ASN1Object.html#fromByteArray(byte[])">fromByteArray</A></CODE></TD>
  223. </TR>
  224. </TABLE>
  225. &nbsp;<A NAME="methods_inherited_from_class_org.bouncycastle.asn1.DERObject"><!-- --></A>
  226. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  227. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  228. <TH ALIGN="left"><B>Methods inherited from class org.bouncycastle.asn1.<A HREF="../../../org/bouncycastle/asn1/DERObject.html" title="class in org.bouncycastle.asn1">DERObject</A></B></TH>
  229. </TR>
  230. <TR BGCOLOR="white" CLASS="TableRowColor">
  231. <TD><CODE><A HREF="../../../org/bouncycastle/asn1/DERObject.html#toASN1Object()">toASN1Object</A></CODE></TD>
  232. </TR>
  233. </TABLE>
  234. &nbsp;<A NAME="methods_inherited_from_class_org.bouncycastle.asn1.ASN1Encodable"><!-- --></A>
  235. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  236. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  237. <TH ALIGN="left"><B>Methods inherited from class org.bouncycastle.asn1.<A HREF="../../../org/bouncycastle/asn1/ASN1Encodable.html" title="class in org.bouncycastle.asn1">ASN1Encodable</A></B></TH>
  238. </TR>
  239. <TR BGCOLOR="white" CLASS="TableRowColor">
  240. <TD><CODE><A HREF="../../../org/bouncycastle/asn1/ASN1Encodable.html#getDEREncoded()">getDEREncoded</A>, <A HREF="../../../org/bouncycastle/asn1/ASN1Encodable.html#getDERObject()">getDERObject</A>, <A HREF="../../../org/bouncycastle/asn1/ASN1Encodable.html#getEncoded()">getEncoded</A>, <A HREF="../../../org/bouncycastle/asn1/ASN1Encodable.html#getEncoded(java.lang.String)">getEncoded</A></CODE></TD>
  241. </TR>
  242. </TABLE>
  243. &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
  244. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  245. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  246. <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
  247. </TR>
  248. <TR BGCOLOR="white" CLASS="TableRowColor">
  249. <TD><CODE>clone, finalize, getClass, notify, notifyAll, wait, wait, wait</CODE></TD>
  250. </TR>
  251. </TABLE>
  252. &nbsp;
  253. <P>
  254. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  255. <A NAME="constructor_detail"><!-- --></A>
  256. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  257. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  258. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  259. <B>Constructor Detail</B></FONT></TH>
  260. </TR>
  261. </TABLE>
  262. <A NAME="DERUTCTime(java.lang.String)"><!-- --></A><H3>
  263. DERUTCTime</H3>
  264. <PRE>
  265. public <B>DERUTCTime</B>(java.lang.String&nbsp;time)</PRE>
  266. <DL>
  267. <DD>The correct format for this is YYMMDDHHMMSSZ (it used to be that seconds were
  268. never encoded. When you're creating one of these objects from scratch, that's
  269. what you want to use, otherwise we'll try to deal with whatever gets read from
  270. the input stream... (this is why the input format is different from the getTime()
  271. method output).
  272. <p>
  273. <P>
  274. <DL>
  275. <DT><B>Parameters:</B><DD><CODE>time</CODE> - the time string.</DL>
  276. </DL>
  277. <HR>
  278. <A NAME="DERUTCTime(java.util.Date)"><!-- --></A><H3>
  279. DERUTCTime</H3>
  280. <PRE>
  281. public <B>DERUTCTime</B>(java.util.Date&nbsp;time)</PRE>
  282. <DL>
  283. <DD>base constructer from a java.util.date object
  284. <P>
  285. </DL>
  286. <!-- ============ METHOD DETAIL ========== -->
  287. <A NAME="method_detail"><!-- --></A>
  288. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  289. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  290. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  291. <B>Method Detail</B></FONT></TH>
  292. </TR>
  293. </TABLE>
  294. <A NAME="getInstance(java.lang.Object)"><!-- --></A><H3>
  295. getInstance</H3>
  296. <PRE>
  297. public static <A HREF="../../../org/bouncycastle/asn1/DERUTCTime.html" title="class in org.bouncycastle.asn1">DERUTCTime</A> <B>getInstance</B>(java.lang.Object&nbsp;obj)</PRE>
  298. <DL>
  299. <DD>return an UTC Time from the passed in object.
  300. <P>
  301. <DD><DL>
  302. <DT><B>Throws:</B>
  303. <DD><CODE>java.lang.IllegalArgumentException</CODE> - if the object cannot be converted.</DL>
  304. </DD>
  305. </DL>
  306. <HR>
  307. <A NAME="getInstance(org.bouncycastle.asn1.ASN1TaggedObject, boolean)"><!-- --></A><H3>
  308. getInstance</H3>
  309. <PRE>
  310. public static <A HREF="../../../org/bouncycastle/asn1/DERUTCTime.html" title="class in org.bouncycastle.asn1">DERUTCTime</A> <B>getInstance</B>(<A HREF="../../../org/bouncycastle/asn1/ASN1TaggedObject.html" title="class in org.bouncycastle.asn1">ASN1TaggedObject</A>&nbsp;obj,
  311. boolean&nbsp;explicit)</PRE>
  312. <DL>
  313. <DD>return an UTC Time from a tagged object.
  314. <P>
  315. <DD><DL>
  316. <DT><B>Parameters:</B><DD><CODE>obj</CODE> - the tagged object holding the object we want<DD><CODE>explicit</CODE> - true if the object is meant to be explicitly
  317. tagged false otherwise.
  318. <DT><B>Throws:</B>
  319. <DD><CODE>java.lang.IllegalArgumentException</CODE> - if the tagged object cannot
  320. be converted.</DL>
  321. </DD>
  322. </DL>
  323. <HR>
  324. <A NAME="getDate()"><!-- --></A><H3>
  325. getDate</H3>
  326. <PRE>
  327. public java.util.Date <B>getDate</B>()
  328. throws java.text.ParseException</PRE>
  329. <DL>
  330. <DD>return the time as a date based on whatever a 2 digit year will return. For
  331. standardised processing use getAdjustedDate().
  332. <P>
  333. <DD><DL>
  334. <DT><B>Returns:</B><DD>the resulting date
  335. <DT><B>Throws:</B>
  336. <DD><CODE>java.text.ParseException</CODE> - if the date string cannot be parsed.</DL>
  337. </DD>
  338. </DL>
  339. <HR>
  340. <A NAME="getAdjustedDate()"><!-- --></A><H3>
  341. getAdjustedDate</H3>
  342. <PRE>
  343. public java.util.Date <B>getAdjustedDate</B>()
  344. throws java.text.ParseException</PRE>
  345. <DL>
  346. <DD>return the time as an adjusted date
  347. in the range of 1950 - 2049.
  348. <P>
  349. <DD><DL>
  350. <DT><B>Returns:</B><DD>a date in the range of 1950 to 2049.
  351. <DT><B>Throws:</B>
  352. <DD><CODE>java.text.ParseException</CODE> - if the date string cannot be parsed.</DL>
  353. </DD>
  354. </DL>
  355. <HR>
  356. <A NAME="getTime()"><!-- --></A><H3>
  357. getTime</H3>
  358. <PRE>
  359. public java.lang.String <B>getTime</B>()</PRE>
  360. <DL>
  361. <DD>return the time - always in the form of
  362. YYMMDDhhmmssGMT(+hh:mm|-hh:mm).
  363. <p>
  364. Normally in a certificate we would expect "Z" rather than "GMT",
  365. however adding the "GMT" means we can just use:
  366. <pre>
  367. dateF = new SimpleDateFormat("yyMMddHHmmssz");
  368. </pre>
  369. To read in the time and get a date which is compatible with our local
  370. time zone.
  371. <p>
  372. <b>Note:</b> In some cases, due to the local date processing, this
  373. may lead to unexpected results. If you want to stick the normal
  374. convention of 1950 to 2049 use the getAdjustedTime() method.
  375. <P>
  376. <DD><DL>
  377. </DL>
  378. </DD>
  379. </DL>
  380. <HR>
  381. <A NAME="getAdjustedTime()"><!-- --></A><H3>
  382. getAdjustedTime</H3>
  383. <PRE>
  384. public java.lang.String <B>getAdjustedTime</B>()</PRE>
  385. <DL>
  386. <DD>return a time string as an adjusted date with a 4 digit year. This goes
  387. in the range of 1950 - 2049.
  388. <P>
  389. <DD><DL>
  390. </DL>
  391. </DD>
  392. </DL>
  393. <HR>
  394. <A NAME="hashCode()"><!-- --></A><H3>
  395. hashCode</H3>
  396. <PRE>
  397. public int <B>hashCode</B>()</PRE>
  398. <DL>
  399. <DD><DL>
  400. <DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/bouncycastle/asn1/ASN1Object.html#hashCode()">hashCode</A></CODE> in class <CODE><A HREF="../../../org/bouncycastle/asn1/ASN1Object.html" title="class in org.bouncycastle.asn1">ASN1Object</A></CODE></DL>
  401. </DD>
  402. <DD><DL>
  403. </DL>
  404. </DD>
  405. </DL>
  406. <HR>
  407. <A NAME="toString()"><!-- --></A><H3>
  408. toString</H3>
  409. <PRE>
  410. public java.lang.String <B>toString</B>()</PRE>
  411. <DL>
  412. <DD><DL>
  413. <DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL>
  414. </DD>
  415. <DD><DL>
  416. </DL>
  417. </DD>
  418. </DL>
  419. <!-- ========= END OF CLASS DATA ========= -->
  420. <HR>
  421. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  422. <A NAME="navbar_bottom"><!-- --></A>
  423. <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
  424. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  425. <TR>
  426. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  427. <A NAME="navbar_bottom_firstrow"><!-- --></A>
  428. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  429. <TR ALIGN="center" VALIGN="top">
  430. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  431. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  432. <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  433. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  434. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  435. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  436. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  437. </TR>
  438. </TABLE>
  439. </TD>
  440. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  441. <b>Bouncy Castle Cryptography Library 1.45</b></EM>
  442. </TD>
  443. </TR>
  444. <TR>
  445. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  446. &nbsp;<A HREF="../../../org/bouncycastle/asn1/DERUnknownTag.html" title="class in org.bouncycastle.asn1"><B>PREV CLASS</B></A>&nbsp;
  447. &nbsp;<A HREF="../../../org/bouncycastle/asn1/DERUTF8String.html" title="class in org.bouncycastle.asn1"><B>NEXT CLASS</B></A></FONT></TD>
  448. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  449. <A HREF="../../../index.html?org/bouncycastle/asn1/DERUTCTime.html" target="_top"><B>FRAMES</B></A> &nbsp;
  450. &nbsp;<A HREF="DERUTCTime.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  451. &nbsp;<SCRIPT type="text/javascript">
  452. <!--
  453. if(window==top) {
  454. document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
  455. }
  456. //-->
  457. </SCRIPT>
  458. <NOSCRIPT>
  459. <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
  460. </NOSCRIPT>
  461. </FONT></TD>
  462. </TR>
  463. <TR>
  464. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  465. SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_org.bouncycastle.asn1.ASN1Encodable">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  466. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  467. DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  468. </TR>
  469. </TABLE>
  470. <A NAME="skip-navbar_bottom"></A>
  471. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  472. <HR>
  473. </BODY>
  474. </HTML>