|
Oracle Fusion Middleware Crypto Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10668-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.security.crypto.asn1.ASN1Date
public class ASN1Date
The universal ASN.1 UTCTime type.
The input may be any valid BER encoding of an ASN.1 UTCTime. The output is always a DER encoding.
Constructor Summary | |
---|---|
ASN1Date() |
|
ASN1Date(java.util.Date value) Creates a new ASN1Date object and initializes to represent the specified date/time. |
|
ASN1Date(java.util.Date value, boolean useGeneralizedTime) Creates a new ASN1Date object and initializes to represent the specified date/time. |
|
ASN1Date(java.io.InputStream is) |
Method Summary | |
---|---|
ASN1Header |
getHeader() |
boolean |
getUseGeneralizedTime() |
java.util.Date |
getValue() |
void |
input(java.io.InputStream is) Inputs this object from the specified input stream. |
static java.util.Date |
inputValue(java.io.InputStream is) |
int |
length() Length of this object's encoding. |
void |
output(java.io.OutputStream os) Outputs this object to the specified output stream. |
static void |
outputValue(java.io.OutputStream os, java.util.Date value) |
static void |
outputValue(java.io.OutputStream os, java.util.Date value, boolean useGeneralizedTime) |
static void |
outputValueWithTag(java.io.OutputStream os, java.util.Date value, boolean useGeneralizedTime, int tag) |
static void |
outputValueWithTag(java.io.OutputStream os, java.util.Date value, int tag) |
void |
setUseGeneralizedTime(boolean useGeneralizedTime) |
java.lang.String |
toString() |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ASN1Date()
public ASN1Date(java.util.Date value)
ASN1Date object and initializes to represent the specified date/time. By default uses UTC Time.
public ASN1Date(java.util.Date value, boolean useGeneralizedTime)
ASN1Date object and initializes to represent the specified date/time.
public ASN1Date(java.io.InputStream is) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public ASN1Header getHeader()
getHeader
in interface ASN1TaggedObject
public java.util.Date getValue()
public void setUseGeneralizedTime(boolean useGeneralizedTime)
public boolean getUseGeneralizedTime()
public java.lang.String toString()
toString
in class java.lang.Object
public void input(java.io.InputStream is) throws java.io.IOException
Streamable
input
in interface Streamable
java.io.IOException
public static java.util.Date inputValue(java.io.InputStream is) throws java.io.IOException
java.io.IOException
public void output(java.io.OutputStream os) throws java.io.IOException
Streamable
output
in interface Streamable
java.io.IOException
public int length()
Streamable
length
in interface Streamable
public static void outputValue(java.io.OutputStream os, java.util.Date value) throws java.io.IOException
java.io.IOException
public static void outputValue(java.io.OutputStream os, java.util.Date value, boolean useGeneralizedTime) throws java.io.IOException
java.io.IOException
public static void outputValueWithTag(java.io.OutputStream os, java.util.Date value, int tag) throws java.io.IOException
java.io.IOException
public static void outputValueWithTag(java.io.OutputStream os, java.util.Date value, boolean useGeneralizedTime, int tag) throws java.io.IOException
java.io.IOException
|
Oracle Fusion Middleware Crypto Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10668-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |