org.mozilla.jss.pkix.cmc

Class PendInfo

Implemented Interfaces:
ASN1Value

public class PendInfo
extends java.lang.Object
implements ASN1Value

CMC PendInfo:
   PendInfo ::= SEQUENCE { 
       pendToken            OCTET STRING, 
       pendTime             GeneralizedTime 
   } 
 

Nested Class Summary

static class
PendInfo.Template
A template for decoding an PendInfo from its BER encoding.

Field Summary

static Tag
TAG

Constructor Summary

PendInfo(String reqId, Date date)
Constructs a PendInfo from requestId and date.
PendInfo(OCTET_STRING pendToken, GeneralizedTime pendTime)
Constructs a PendInfo from its components.

Method Summary

void
encode(OutputStream ostream)
void
encode(Tag implicitTag, OutputStream ostream)
GeneralizedTime
getPendTime()
OCTET_STRING
getPendToken()
Tag
getTag()
static PendInfo.Template
getTemplate()

Field Details

TAG

public static final Tag TAG

Constructor Details

PendInfo

public PendInfo(String reqId,
                Date date)
Constructs a PendInfo from requestId and date.
Parameters:
reqId - the request Id
date - the suggested time for the client to query the status.

PendInfo

public PendInfo(OCTET_STRING pendToken,
                GeneralizedTime pendTime)
Constructs a PendInfo from its components.
Parameters:
pendToken - the identifier.
pendTime - the suggested time for the client to query the status.

Method Details

encode

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

encode

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

getPendTime

public GeneralizedTime getPendTime()

getPendToken

public OCTET_STRING getPendToken()

getTag

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

getTemplate

public static PendInfo.Template getTemplate()