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.
abstract Tag
getTag()
protected abstract 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 abstract Tag getTag()
Specified by:
getTag in interface ASN1Value

isUTC

protected abstract boolean isUTC()

toDate

public Date toDate()