org.mozilla.jss.pkix.cmmf

Class RevRequest

public class RevRequest extends Object implements ASN1Value

CMMF RevRequest.
 RevRequest ::= SEQUENCE {
      issuerName      Name,
      serialNumber    INTEGER,
      reason          CRLReason,
      invalidityDate  GeneralizedTime OPTIONAL,
      sharedSecret    OCTET STRING OPTIONAL,
      comment         UTF8String OPTIONAL }
 
Nested Class Summary
static classRevRequest.Template
A Template class for decoding a RevRequest.
Field Summary
static ENUMERATEDaACompromise
A CRLReason, which can be used in the reason field.
static ENUMERATEDaffiliationChanged
A CRLReason, which can be used in the reason field.
static ENUMERATEDcACompromise
A CRLReason, which can be used in the reason field.
static ENUMERATEDcertificateHold
A CRLReason, which can be used in the reason field.
static ENUMERATEDcessationOfOperation
A CRLReason, which can be used in the reason field.
static ENUMERATEDkeyCompromise
A CRLReason, which can be used in the reason field.
static ENUMERATEDprivilegeWithdrawn
A CRLReason, which can be used in the reason field.
static ENUMERATEDremoveFromCRL
A CRLReason, which can be used in the reason field.
static ENUMERATEDsuperseded
A CRLReason, which can be used in the reason field.
static ENUMERATEDunspecified
A CRLReason, which can be used in the reason field.
Constructor Summary
RevRequest(ANY issuerName, INTEGER serialNumber, ENUMERATED reason, OCTET_STRING sharedSecret, UTF8String comment)
Constructs a new RevRequest from its components, omitting the invalidityDate field.
RevRequest(ANY issuerName, INTEGER serialNumber, ENUMERATED reason, GeneralizedTime invalidityDate, OCTET_STRING sharedSecret, UTF8String comment)
Constructs a new RevRequest from its components.
Method Summary
voidencode(OutputStream ostream)
voidencode(Tag implicitTag, OutputStream ostream)
UTF8StringgetComment()
Returns the comment field.
GeneralizedTimegetInvalidityDate()
Returns the invalidityDate field.
ANYgetIssuerName()
Returns the issuerName field as an ANY.
OCTET_STRINGgetPassphrase()
Returns the passphrase field.
ENUMERATEDgetReason()
Returns the reason field, which should indicate the reason for the revocation.
INTEGERgetSerialNumber()
Returns the serialNumber field.
OCTET_STRINGgetSharedSecret()
Returns the sharedSecret field.
TaggetTag()

Field Detail

aACompromise

public static final ENUMERATED aACompromise
A CRLReason, which can be used in the reason field.

affiliationChanged

public static final ENUMERATED affiliationChanged
A CRLReason, which can be used in the reason field.

cACompromise

public static final ENUMERATED cACompromise
A CRLReason, which can be used in the reason field.

certificateHold

public static final ENUMERATED certificateHold
A CRLReason, which can be used in the reason field.

cessationOfOperation

public static final ENUMERATED cessationOfOperation
A CRLReason, which can be used in the reason field.

keyCompromise

public static final ENUMERATED keyCompromise
A CRLReason, which can be used in the reason field.

privilegeWithdrawn

public static final ENUMERATED privilegeWithdrawn
A CRLReason, which can be used in the reason field.

removeFromCRL

public static final ENUMERATED removeFromCRL
A CRLReason, which can be used in the reason field.

superseded

public static final ENUMERATED superseded
A CRLReason, which can be used in the reason field.

unspecified

public static final ENUMERATED unspecified
A CRLReason, which can be used in the reason field.

Constructor Detail

RevRequest

public RevRequest(ANY issuerName, INTEGER serialNumber, ENUMERATED reason, OCTET_STRING sharedSecret, UTF8String comment)

Deprecated: This constructor is obsolete now that invalidityDate has been added to the class.

Constructs a new RevRequest from its components, omitting the invalidityDate field.

Parameters: issuerName The issuerName field. serialNumber The serialNumber field. reason The reason field. The constants defined in this class may be used. sharedSecret The sharedSecret field. This field is optional, so null may be used. comment The comment field. This field is optional, so null may be used.

RevRequest

public RevRequest(ANY issuerName, INTEGER serialNumber, ENUMERATED reason, GeneralizedTime invalidityDate, OCTET_STRING sharedSecret, UTF8String comment)
Constructs a new RevRequest from its components.

Parameters: issuerName The issuerName field. serialNumber The serialNumber field. reason The reason field. The constants defined in this class may be used. invalidityDate The suggested value for the Invalidity Date CRL extension. This field is optional, so null may be used. sharedSecret The sharedSecret field. This field is optional, so null may be used. comment The comment field. This field is optional, so null may be used.

Method Detail

encode

public void encode(OutputStream ostream)

encode

public void encode(Tag implicitTag, OutputStream ostream)

getComment

public UTF8String getComment()
Returns the comment field. Returns null if the field is not present.

getInvalidityDate

public GeneralizedTime getInvalidityDate()
Returns the invalidityDate field. Returns null if the field is not present.

getIssuerName

public ANY getIssuerName()
Returns the issuerName field as an ANY.

getPassphrase

public OCTET_STRING getPassphrase()

Deprecated: The passphrase field has been renamed sharedSecret. Call getSharedSecret instead.

Returns the passphrase field. Returns null if the field is not present.

getReason

public ENUMERATED getReason()
Returns the reason field, which should indicate the reason for the revocation. The currently supported reasons are:
 CRLReason ::= ENUMERATED {
      unspecified             (0),
      keyCompromise           (1),
      cACompromise            (2),
      affiliationChanged      (3),
      superseded              (4),
      cessationOfOperation    (5),
      certificateHold         (6),
      removeFromCRL           (8),
      privilegeWithdrawn      (9),
      aACompromise            (10) }
 
These are all defined as constants in this class.

getSerialNumber

public INTEGER getSerialNumber()
Returns the serialNumber field.

getSharedSecret

public OCTET_STRING getSharedSecret()
Returns the sharedSecret field. Returns null if the field is not present.

getTag

public Tag getTag()