org.mozilla.jss.asn1

Class TimeBase

Implemented Interfaces:
ASN1Value
Known Direct Subclasses:
GeneralizedTime, UTCTime

public abstract class TimeBase
extends java.lang.Object
implements ASN1Value

Nested Class Summary

static class
TimeBase.Template

Field Summary

static Form
FORM

Constructor Summary

TimeBase(Date date)

Method Summary

void
encode(OutputStream ostream)
void
encode(Tag implicit, OutputStream ostream)
Write the DER-encoding of this TimeBase.
Tag
getTag()
protected boolean
isUTC()
Date
toDate()

Field Details

FORM

public static final Form FORM

Constructor Details

TimeBase

public TimeBase(Date date)

Method Details

encode

public void encode(OutputStream ostream)
            throws IOException
Specified by:
encode in interface ASN1Value


encode

public void encode(Tag implicit,
                   OutputStream ostream)
            throws IOException
Write the DER-encoding of this TimeBase.
Specified by:
encode in interface ASN1Value


getTag

public Tag getTag()
Specified by:
getTag in interface ASN1Value


isUTC

protected boolean isUTC()


toDate

public Date toDate()