Package org.mozilla.jss.pkix.cmmf
Class RevRequest
java.lang.Object
org.mozilla.jss.pkix.cmmf.RevRequest
- All Implemented Interfaces:
ASN1Value
CMMF RevRequest.
RevRequest ::= SEQUENCE {
issuerName Name,
serialNumber INTEGER,
reason CRLReason,
invalidityDate GeneralizedTime OPTIONAL,
sharedSecret OCTET STRING OPTIONAL,
comment UTF8String OPTIONAL }
For maintenance and conformance reasons, this code has been brought
over and renamed to cmc/RevokeRequest during the CMC update to rfc 5272.
All new code should use cmc/RevokeRequest instead-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA Template class for decoding aRevRequest. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ENUMERATEDACRLReason, which can be used in thereasonfield.static final ENUMERATEDACRLReason, which can be used in thereasonfield.static final ENUMERATEDACRLReason, which can be used in thereasonfield.static final ENUMERATEDACRLReason, which can be used in thereasonfield.static final ENUMERATEDACRLReason, which can be used in thereasonfield.private UTF8Stringprivate GeneralizedTimeprivate ANYstatic final ENUMERATEDACRLReason, which can be used in thereasonfield.static final ENUMERATEDACRLReason, which can be used in thereasonfield.private ENUMERATEDstatic final ENUMERATEDACRLReason, which can be used in thereasonfield.private SEQUENCEprivate INTEGERprivate OCTET_STRINGstatic final ENUMERATEDACRLReason, which can be used in thereasonfield.private static final Tagstatic final ENUMERATEDACRLReason, which can be used in thereasonfield. -
Constructor Summary
ConstructorsConstructorDescriptionRevRequest(ANY issuerName, INTEGER serialNumber, ENUMERATED reason, GeneralizedTime invalidityDate, OCTET_STRING sharedSecret, UTF8String comment) Constructs a newRevRequestfrom its components.RevRequest(ANY issuerName, INTEGER serialNumber, ENUMERATED reason, OCTET_STRING sharedSecret, UTF8String comment) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoidencode(OutputStream ostream) Write this value's DER encoding to an output stream using its own base tag.voidencode(Tag implicitTag, OutputStream ostream) Write this value's DER encoding to an output stream using an implicit tag.Returns thecommentfield.Returns theinvalidityDatefield.Returns theissuerNamefield as an ANY.Deprecated.Thepassphrasefield has been renamedsharedSecret.Returns thereasonfield, which should indicate the reason for the revocation.Returns theserialNumberfield.Returns thesharedSecretfield.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 thereasonfield. -
keyCompromise
ACRLReason, which can be used in thereasonfield. -
cACompromise
ACRLReason, which can be used in thereasonfield. -
affiliationChanged
ACRLReason, which can be used in thereasonfield. -
superseded
ACRLReason, which can be used in thereasonfield. -
cessationOfOperation
ACRLReason, which can be used in thereasonfield. -
certificateHold
ACRLReason, which can be used in thereasonfield. -
removeFromCRL
ACRLReason, which can be used in thereasonfield. -
privilegeWithdrawn
ACRLReason, which can be used in thereasonfield. -
aACompromise
ACRLReason, which can be used in thereasonfield. -
issuerName
-
serialNumber
-
reason
-
invalidityDate
-
comment
-
sequence
-
TAG
-
-
Constructor Details
-
RevRequest
@Deprecated public RevRequest(ANY issuerName, INTEGER serialNumber, ENUMERATED reason, OCTET_STRING sharedSecret, UTF8String comment) Deprecated.This constructor is obsolete now thatinvalidityDatehas been added to the class.Constructs a newRevRequestfrom its components, omitting theinvalidityDatefield.- Parameters:
issuerName- TheissuerNamefield.serialNumber- TheserialNumberfield.reason- Thereasonfield. The constants defined in this class may be used.sharedSecret- ThesharedSecretfield. This field is optional, sonullmay be used.comment- Thecommentfield. This field is optional, sonullmay be used.
-
RevRequest
public RevRequest(ANY issuerName, INTEGER serialNumber, ENUMERATED reason, GeneralizedTime invalidityDate, OCTET_STRING sharedSecret, UTF8String comment) Constructs a newRevRequestfrom its components.- Parameters:
issuerName- TheissuerNamefield.serialNumber- TheserialNumberfield.reason- Thereasonfield. The constants defined in this class may be used.invalidityDate- The suggested value for the Invalidity Date CRL extension. This field is optional, sonullmay be used.sharedSecret- ThesharedSecretfield. This field is optional, sonullmay be used.comment- Thecommentfield. This field is optional, sonullmay be used.
-
-
Method Details
-
getIssuerName
Returns theissuerNamefield as an ANY. -
getSerialNumber
Returns theserialNumberfield. -
getReason
Returns thereasonfield, 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 theinvalidityDatefield. Returns null if the field is not present. -
getPassphrase
Deprecated.Thepassphrasefield has been renamedsharedSecret. CallgetSharedSecretinstead.Returns thepassphrasefield. Returnsnullif the field is not present. -
getComment
Returns thecommentfield. Returnsnullif the field is not present. -
getTag
Description copied from interface:ASN1ValueReturns the base tag for this type, not counting any tags that may be imposed on it by its context. -
encode
Description copied from interface:ASN1ValueWrite this value's DER encoding to an output stream using its own base tag.- Specified by:
encodein interfaceASN1Value- Parameters:
ostream- Output stream.- Throws:
IOException- If an error occurred.
-
encode
Description copied from interface:ASN1ValueWrite this value's DER encoding to an output stream using an implicit tag.- Specified by:
encodein interfaceASN1Value- Parameters:
implicitTag- Implicit tag.ostream- Output stream.- Throws:
IOException- If an error occurred.
-
invalidityDatehas been added to the class.