Package org.mozilla.jss.pkix.cmmf
Class RevRequest
- java.lang.Object
-
- org.mozilla.jss.pkix.cmmf.RevRequest
-
- All Implemented Interfaces:
ASN1Value
public class RevRequest extends java.lang.Object implements 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 Classes Modifier and Type Class Description static class
RevRequest.Template
A Template class for decoding aRevRequest
.
-
Field Summary
Fields Modifier and Type Field Description static ENUMERATED
aACompromise
ACRLReason
, which can be used in thereason
field.static ENUMERATED
affiliationChanged
ACRLReason
, which can be used in thereason
field.static ENUMERATED
cACompromise
ACRLReason
, which can be used in thereason
field.static ENUMERATED
certificateHold
ACRLReason
, which can be used in thereason
field.static ENUMERATED
cessationOfOperation
ACRLReason
, which can be used in thereason
field.static ENUMERATED
keyCompromise
ACRLReason
, which can be used in thereason
field.static ENUMERATED
privilegeWithdrawn
ACRLReason
, which can be used in thereason
field.static ENUMERATED
removeFromCRL
ACRLReason
, which can be used in thereason
field.static ENUMERATED
superseded
ACRLReason
, which can be used in thereason
field.static ENUMERATED
unspecified
ACRLReason
, which can be used in thereason
field.
-
Constructor Summary
Constructors Constructor Description RevRequest(ANY issuerName, INTEGER serialNumber, ENUMERATED reason, GeneralizedTime invalidityDate, OCTET_STRING sharedSecret, UTF8String comment)
Constructs a newRevRequest
from its components.RevRequest(ANY issuerName, INTEGER serialNumber, ENUMERATED reason, OCTET_STRING sharedSecret, UTF8String comment)
Deprecated.This constructor is obsolete now thatinvalidityDate
has been added to the class.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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 thecomment
field.GeneralizedTime
getInvalidityDate()
Returns theinvalidityDate
field.ANY
getIssuerName()
Returns theissuerName
field as an ANY.OCTET_STRING
getPassphrase()
Deprecated.Thepassphrase
field has been renamedsharedSecret
.ENUMERATED
getReason()
Returns thereason
field, which should indicate the reason for the revocation.INTEGER
getSerialNumber()
Returns theserialNumber
field.OCTET_STRING
getSharedSecret()
Returns thesharedSecret
field.Tag
getTag()
Returns the base tag for this type, not counting any tags that may be imposed on it by its context.
-
-
-
Field Detail
-
unspecified
public static final ENUMERATED unspecified
ACRLReason
, which can be used in thereason
field.
-
keyCompromise
public static final ENUMERATED keyCompromise
ACRLReason
, which can be used in thereason
field.
-
cACompromise
public static final ENUMERATED cACompromise
ACRLReason
, which can be used in thereason
field.
-
affiliationChanged
public static final ENUMERATED affiliationChanged
ACRLReason
, which can be used in thereason
field.
-
superseded
public static final ENUMERATED superseded
ACRLReason
, which can be used in thereason
field.
-
cessationOfOperation
public static final ENUMERATED cessationOfOperation
ACRLReason
, which can be used in thereason
field.
-
certificateHold
public static final ENUMERATED certificateHold
ACRLReason
, which can be used in thereason
field.
-
removeFromCRL
public static final ENUMERATED removeFromCRL
ACRLReason
, which can be used in thereason
field.
-
privilegeWithdrawn
public static final ENUMERATED privilegeWithdrawn
ACRLReason
, which can be used in thereason
field.
-
aACompromise
public static final ENUMERATED aACompromise
ACRLReason
, which can be used in thereason
field.
-
-
Constructor Detail
-
RevRequest
@Deprecated public RevRequest(ANY issuerName, INTEGER serialNumber, ENUMERATED reason, OCTET_STRING sharedSecret, UTF8String comment)
Deprecated.This constructor is obsolete now thatinvalidityDate
has been added to the class.Constructs a newRevRequest
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.sharedSecret
- ThesharedSecret
field. This field is optional, sonull
may be used.comment
- Thecomment
field. This field is optional, sonull
may be used.
-
RevRequest
public RevRequest(ANY issuerName, INTEGER serialNumber, ENUMERATED reason, GeneralizedTime invalidityDate, OCTET_STRING sharedSecret, UTF8String comment)
Constructs a newRevRequest
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.sharedSecret
- ThesharedSecret
field. This field is optional, sonull
may be used.comment
- Thecomment
field. This field is optional, sonull
may be used.
-
-
Method Detail
-
getIssuerName
public ANY getIssuerName()
Returns theissuerName
field as an ANY.
-
getSerialNumber
public INTEGER getSerialNumber()
Returns theserialNumber
field.
-
getReason
public ENUMERATED 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
public GeneralizedTime getInvalidityDate()
Returns theinvalidityDate
field. Returns null if the field is not present.
-
getPassphrase
@Deprecated public OCTET_STRING getPassphrase()
Deprecated.Thepassphrase
field has been renamedsharedSecret
. CallgetSharedSecret
instead.Returns thepassphrase
field. Returnsnull
if the field is not present.
-
getSharedSecret
public OCTET_STRING getSharedSecret()
Returns thesharedSecret
field. Returnsnull
if the field is not present.
-
getComment
public UTF8String getComment()
Returns thecomment
field. Returnsnull
if the field is not present.
-
getTag
public Tag 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
public void encode(java.io.OutputStream ostream) throws java.io.IOException
Description copied from interface:ASN1Value
Write this value's DER encoding to an output stream using its own base tag.
-
-