org.mozilla.jss.pkix.cmmf

Class GetCRL

public class GetCRL extends Object implements ASN1Value

CMMF GetCRL.
 GetCRL ::= SEQUENCE {
      issuerName      Name,
      cRLName         GeneralName OPTIONAL,
      time            GeneralizedTime OPTIONAL,
      reasons         ReasonFlags OPTIONAL }
 
Nested Class Summary
static classGetCRL.Template
A Template for decoding a GetCRL.
Field Summary
static intaffiliationChanged
A bit position in a ReasonFlags bit string.
static intcACompromise
A bit position in a ReasonFlags bit string.
static intcertificateHold
A bit position in a ReasonFlags bit string.
static intcessationOfOperation
A bit position in a ReasonFlags bit string.
static intkeyCompromise
A bit position in a ReasonFlags bit string.
static intsuperseded
A bit position in a ReasonFlags bit string.
static intunused
A bit position in a ReasonFlags bit string.
Constructor Summary
GetCRL(ANY issuerName, ANY cRLName, GeneralizedTime time, BIT_STRING reasons)
Constructs a GetCRL from its components.
Method Summary
voidencode(OutputStream ostream)
voidencode(Tag implicitTag, OutputStream ostream)
ANYgetCRLName()
Returns the cRLName field, which may be null.
ANYgetIssuerName()
Returns the issuerName field.
BIT_STRINGgetReasons()
Returns the reasons field, which may be null.
TaggetTag()
static GetCRL.TemplategetTemplate()
GeneralizedTimegetTime()
Returns the time field, which may be null.

Field Detail

affiliationChanged

public static final int affiliationChanged
A bit position in a ReasonFlags bit string.

cACompromise

public static final int cACompromise
A bit position in a ReasonFlags bit string.

certificateHold

public static final int certificateHold
A bit position in a ReasonFlags bit string.

cessationOfOperation

public static final int cessationOfOperation
A bit position in a ReasonFlags bit string.

keyCompromise

public static final int keyCompromise
A bit position in a ReasonFlags bit string.

superseded

public static final int superseded
A bit position in a ReasonFlags bit string.

unused

public static final int unused
A bit position in a ReasonFlags bit string.

Constructor Detail

GetCRL

public GetCRL(ANY issuerName, ANY cRLName, GeneralizedTime time, BIT_STRING reasons)
Constructs a GetCRL from its components.

Parameters: issuerName The issuer name of the CRL. This should be an ASN.1 Name. cRLName The name of the CRL, which may be null. This should be an ASN.1 GeneralName. time The time of the CRL, which may be null. reasons Can be used to specify from among CRLs partitioned by revocation reason. The BIT_STRING can be created from a Java BitSet. The positions in the BitSet should be set or cleared using the constants provided in this class.

Method Detail

encode

public void encode(OutputStream ostream)

encode

public void encode(Tag implicitTag, OutputStream ostream)

getCRLName

public ANY getCRLName()
Returns the cRLName field, which may be null.

getIssuerName

public ANY getIssuerName()
Returns the issuerName field.

getReasons

public BIT_STRING getReasons()
Returns the reasons field, which may be null.

getTag

public Tag getTag()

getTemplate

public static GetCRL.Template getTemplate()

getTime

public GeneralizedTime getTime()
Returns the time field, which may be null.