org.mozilla.jss.pkix.cmmf
Class RevRequest
java.lang.Objectorg.mozilla.jss.pkix.cmmf.RevRequest
- ASN1Value
public class RevRequest
extends java.lang.Object
CMMF
RevRequest.
RevRequest ::= SEQUENCE {
issuerName Name,
serialNumber INTEGER,
reason CRLReason,
invalidityDate GeneralizedTime OPTIONAL,
sharedSecret OCTET STRING OPTIONAL,
comment UTF8String OPTIONAL }
static ENUMERATED | aACompromise- A
CRLReason, which can be used in the reason
field.
|
static ENUMERATED | affiliationChanged- A
CRLReason, which can be used in the reason
field.
|
static ENUMERATED | cACompromise- A
CRLReason, which can be used in the reason
field.
|
static ENUMERATED | certificateHold- A
CRLReason, which can be used in the reason
field.
|
static ENUMERATED | cessationOfOperation- A
CRLReason, which can be used in the reason
field.
|
static ENUMERATED | keyCompromise- A
CRLReason, which can be used in the reason
field.
|
static ENUMERATED | privilegeWithdrawn- A
CRLReason, which can be used in the reason
field.
|
static ENUMERATED | removeFromCRL- A
CRLReason, which can be used in the reason
field.
|
static ENUMERATED | superseded- A
CRLReason, which can be used in the reason
field.
|
static ENUMERATED | unspecified- A
CRLReason, which can be used in the reason
field.
|
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.
RevRequest
public RevRequest(ANY issuerName,
INTEGER serialNumber,
ENUMERATED reason,
GeneralizedTime invalidityDate,
OCTET_STRING sharedSecret,
UTF8String comment) Constructs a new RevRequest from its components.
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.
RevRequest
public RevRequest(ANY issuerName,
INTEGER serialNumber,
ENUMERATED reason,
OCTET_STRING sharedSecret,
UTF8String comment)This constructor is obsolete now that
invalidityDate has been added to the class.
Constructs a new RevRequest from its components,
omitting the invalidityDate field.
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.
encode
public void encode(OutputStream ostream)
throws IOException Write this value's DER encoding to an output stream using
its own base tag.
- encode in interface ASN1Value
encode
public void encode(Tag implicitTag,
OutputStream ostream)
throws IOException Write this value's DER encoding to an output stream using
an implicit tag.
- encode in interface ASN1Value
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()
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()
Returns the base tag for this type, not counting any tags
that may be imposed on it by its context.
- getTag in interface ASN1Value