Package org.mozilla.jss.pkix.cmc
Class RevokeRequest
java.lang.Object
org.mozilla.jss.pkix.cmc.RevokeRequest
- All Implemented Interfaces:
ASN1Value
CMC RevokeRequest.
RevokeRequest ::= SEQUENCE { issuerName Name, serialNumber INTEGER, reason CRLReason, invalidityDate GeneralizedTime OPTIONAL, passphrase OCTET STRING OPTIONAL, comment UTF8String OPTIONAL }For maintenance and conformance reasons, this code is brought over and mildly updated and renamed from cmmf/RevRequest during the process of CMC update to rfc 5272
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A Template class for decoding aRevokeRequest
. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ENUMERATED
ACRLReason
, which can be used in thereason
field.static final ENUMERATED
ACRLReason
, which can be used in thereason
field.static final ENUMERATED
ACRLReason
, which can be used in thereason
field.static final ENUMERATED
ACRLReason
, which can be used in thereason
field.static final ENUMERATED
ACRLReason
, which can be used in thereason
field.private UTF8String
private GeneralizedTime
private ANY
static final ENUMERATED
ACRLReason
, which can be used in thereason
field.private OCTET_STRING
static final ENUMERATED
ACRLReason
, which can be used in thereason
field.private ENUMERATED
static final ENUMERATED
ACRLReason
, which can be used in thereason
field.private SEQUENCE
private INTEGER
static final ENUMERATED
ACRLReason
, which can be used in thereason
field.private static final Tag
static final ENUMERATED
ACRLReason
, which can be used in thereason
field. -
Constructor Summary
ConstructorsConstructorDescriptionRevokeRequest
(ANY issuerName, INTEGER serialNumber, ENUMERATED reason, GeneralizedTime invalidityDate, OCTET_STRING passphrase, UTF8String comment) Constructs a newRevokeRequest
from its components.RevokeRequest
(ANY issuerName, INTEGER serialNumber, ENUMERATED reason, OCTET_STRING passphrase, UTF8String comment) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoid
encode
(OutputStream ostream) Write this value's DER encoding to an output stream using its own base tag.void
encode
(Tag implicitTag, OutputStream ostream) Write this value's DER encoding to an output stream using an implicit tag.Returns thecomment
field.Returns theinvalidityDate
field.Returns theissuerName
field as an ANY.Returns thereason
field, which should indicate the reason for the revocation.Returns theserialNumber
field.Returns thepassphrase
field.getTag()
Returns the base tag for this type, not counting any tags that may be imposed on it by its context.
-
Field Details
-
unspecified
ACRLReason
, which can be used in thereason
field. -
keyCompromise
ACRLReason
, which can be used in thereason
field. -
cACompromise
ACRLReason
, which can be used in thereason
field. -
affiliationChanged
ACRLReason
, which can be used in thereason
field. -
superseded
ACRLReason
, which can be used in thereason
field. -
cessationOfOperation
ACRLReason
, which can be used in thereason
field. -
certificateHold
ACRLReason
, which can be used in thereason
field. -
removeFromCRL
ACRLReason
, which can be used in thereason
field. -
privilegeWithdrawn
ACRLReason
, which can be used in thereason
field. -
aACompromise
ACRLReason
, which can be used in thereason
field. -
issuerName
-
serialNumber
-
reason
-
invalidityDate
-
passphrase
-
comment
-
sequence
-
TAG
-
-
Constructor Details
-
RevokeRequest
@Deprecated public RevokeRequest(ANY issuerName, INTEGER serialNumber, ENUMERATED reason, OCTET_STRING passphrase, UTF8String comment) Deprecated.This constructor is obsolete now thatinvalidityDate
has been added to the class.Constructs a newRevokeRequest
from its components, omitting theinvalidityDate
field.- Parameters:
issuerName
- TheissuerName
field.serialNumber
- TheserialNumber
field.reason
- Thereason
field. The constants defined in this class may be used.passphrase
- Thepassphrase
field. This field is optional, sonull
may be used.comment
- Thecomment
field. This field is optional, sonull
may be used.
-
RevokeRequest
public RevokeRequest(ANY issuerName, INTEGER serialNumber, ENUMERATED reason, GeneralizedTime invalidityDate, OCTET_STRING passphrase, UTF8String comment) Constructs a newRevokeRequest
from its components.- Parameters:
issuerName
- TheissuerName
field.serialNumber
- TheserialNumber
field.reason
- Thereason
field. The constants defined in this class may be used.invalidityDate
- The suggested value for the Invalidity Date CRL extension. This field is optional, sonull
may be used.passphrase
- Thepassphrase
field. This field is optional, sonull
may be used.comment
- Thecomment
field. This field is optional, sonull
may be used.
-
-
Method Details
-
getIssuerName
Returns theissuerName
field as an ANY. -
getSerialNumber
Returns theserialNumber
field. -
getReason
Returns thereason
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. -
getInvalidityDate
Returns theinvalidityDate
field. Returnsnull
if the field is not present. -
getComment
Returns thecomment
field. Returnsnull
if the field is not present. -
getTag
Description copied from interface:ASN1Value
Returns the base tag for this type, not counting any tags that may be imposed on it by its context. -
encode
Description copied from interface:ASN1Value
Write this value's DER encoding to an output stream using its own base tag.- Specified by:
encode
in interfaceASN1Value
- Parameters:
ostream
- Output stream.- Throws:
IOException
- If an error occurred.
-
encode
Description copied from interface:ASN1Value
Write this value's DER encoding to an output stream using an implicit tag.- Specified by:
encode
in interfaceASN1Value
- Parameters:
implicitTag
- Implicit tag.ostream
- Output stream.- Throws:
IOException
- If an error occurred.
-
invalidityDate
has been added to the class.