public class RevokeRequest extends java.lang.Object implements ASN1Value
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
Modifier and Type | Class and Description |
---|---|
static class |
RevokeRequest.Template
A Template class for decoding a
RevokeRequest . |
Modifier and Type | Field and Description |
---|---|
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. |
Constructor and Description |
---|
RevokeRequest(ANY issuerName,
INTEGER serialNumber,
ENUMERATED reason,
GeneralizedTime invalidityDate,
OCTET_STRING passphrase,
UTF8String comment)
Constructs a new
RevokeRequest from its components. |
RevokeRequest(ANY issuerName,
INTEGER serialNumber,
ENUMERATED reason,
OCTET_STRING passphrase,
UTF8String comment)
Deprecated.
This constructor is obsolete now that
invalidityDate has been added to the class. |
Modifier and Type | Method and Description |
---|---|
void |
encode(java.io.OutputStream ostream)
Write this value's DER encoding to an output stream using
its own base tag.
|
void |
encode(Tag implicitTag,
java.io.OutputStream ostream)
Write this value's DER encoding to an output stream using
an implicit tag.
|
UTF8String |
getComment()
Returns the
comment field. |
GeneralizedTime |
getInvalidityDate()
Returns the
invalidityDate field. |
ANY |
getIssuerName()
Returns the
issuerName field as an ANY. |
ENUMERATED |
getReason()
Returns the
reason field, which should indicate the
reason for the revocation. |
INTEGER |
getSerialNumber()
Returns the
serialNumber field. |
OCTET_STRING |
getSharedSecret()
Returns the
passphrase field. |
Tag |
getTag()
Returns the base tag for this type, not counting any tags
that may be imposed on it by its context.
|
public static final ENUMERATED unspecified
CRLReason
, which can be used in the reason
field.public static final ENUMERATED keyCompromise
CRLReason
, which can be used in the reason
field.public static final ENUMERATED cACompromise
CRLReason
, which can be used in the reason
field.public static final ENUMERATED affiliationChanged
CRLReason
, which can be used in the reason
field.public static final ENUMERATED superseded
CRLReason
, which can be used in the reason
field.public static final ENUMERATED cessationOfOperation
CRLReason
, which can be used in the reason
field.public static final ENUMERATED certificateHold
CRLReason
, which can be used in the reason
field.public static final ENUMERATED removeFromCRL
CRLReason
, which can be used in the reason
field.public static final ENUMERATED privilegeWithdrawn
CRLReason
, which can be used in the reason
field.public static final ENUMERATED aACompromise
CRLReason
, which can be used in the reason
field.@Deprecated public RevokeRequest(ANY issuerName, INTEGER serialNumber, ENUMERATED reason, OCTET_STRING passphrase, UTF8String comment)
invalidityDate
has been added to the class.RevokeRequest
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.passphrase
- The passphrase
field. This field is
optional, so null
may be used.comment
- The comment
field. This field is optional,
so null
may be used.public RevokeRequest(ANY issuerName, INTEGER serialNumber, ENUMERATED reason, GeneralizedTime invalidityDate, OCTET_STRING passphrase, UTF8String comment)
RevokeRequest
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.passphrase
- The passphrase
field. This field is
optional, so null
may be used.comment
- The comment
field. This field is optional,
so null
may be used.public ANY getIssuerName()
issuerName
field as an ANY.public INTEGER getSerialNumber()
serialNumber
field.public ENUMERATED getReason()
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.
public GeneralizedTime getInvalidityDate()
invalidityDate
field. Returns null
if the field is not present.public OCTET_STRING getSharedSecret()
passphrase
field. Returns
null
if the field is not present.public UTF8String getComment()
comment
field. Returns null
if the field is not present.public Tag getTag()
ASN1Value
public void encode(java.io.OutputStream ostream) throws java.io.IOException
ASN1Value