Package org.mozilla.jss.pkix.cmc
Class RevokeRequest
- java.lang.Object
-
- org.mozilla.jss.pkix.cmc.RevokeRequest
-
- All Implemented Interfaces:
ASN1Value
public class RevokeRequest extends java.lang.Object implements 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 Classes Modifier and Type Class Description static classRevokeRequest.TemplateA Template class for decoding aRevokeRequest.
-
Field Summary
Fields Modifier and Type Field Description static ENUMERATEDaACompromiseACRLReason, which can be used in thereasonfield.static ENUMERATEDaffiliationChangedACRLReason, which can be used in thereasonfield.static ENUMERATEDcACompromiseACRLReason, which can be used in thereasonfield.static ENUMERATEDcertificateHoldACRLReason, which can be used in thereasonfield.static ENUMERATEDcessationOfOperationACRLReason, which can be used in thereasonfield.static ENUMERATEDkeyCompromiseACRLReason, which can be used in thereasonfield.static ENUMERATEDprivilegeWithdrawnACRLReason, which can be used in thereasonfield.static ENUMERATEDremoveFromCRLACRLReason, which can be used in thereasonfield.static ENUMERATEDsupersededACRLReason, which can be used in thereasonfield.static ENUMERATEDunspecifiedACRLReason, which can be used in thereasonfield.
-
Constructor Summary
Constructors Constructor Description RevokeRequest(ANY issuerName, INTEGER serialNumber, ENUMERATED reason, GeneralizedTime invalidityDate, OCTET_STRING passphrase, UTF8String comment)Constructs a newRevokeRequestfrom its components.RevokeRequest(ANY issuerName, INTEGER serialNumber, ENUMERATED reason, OCTET_STRING passphrase, UTF8String comment)Deprecated.This constructor is obsolete now thatinvalidityDatehas been added to the class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidencode(java.io.OutputStream ostream)Write this value's DER encoding to an output stream using its own base tag.voidencode(Tag implicitTag, java.io.OutputStream ostream)Write this value's DER encoding to an output stream using an implicit tag.UTF8StringgetComment()Returns thecommentfield.GeneralizedTimegetInvalidityDate()Returns theinvalidityDatefield.ANYgetIssuerName()Returns theissuerNamefield as an ANY.ENUMERATEDgetReason()Returns thereasonfield, which should indicate the reason for the revocation.INTEGERgetSerialNumber()Returns theserialNumberfield.OCTET_STRINGgetSharedSecret()Returns thepassphrasefield.TaggetTag()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 thereasonfield.
-
keyCompromise
public static final ENUMERATED keyCompromise
ACRLReason, which can be used in thereasonfield.
-
cACompromise
public static final ENUMERATED cACompromise
ACRLReason, which can be used in thereasonfield.
-
affiliationChanged
public static final ENUMERATED affiliationChanged
ACRLReason, which can be used in thereasonfield.
-
superseded
public static final ENUMERATED superseded
ACRLReason, which can be used in thereasonfield.
-
cessationOfOperation
public static final ENUMERATED cessationOfOperation
ACRLReason, which can be used in thereasonfield.
-
certificateHold
public static final ENUMERATED certificateHold
ACRLReason, which can be used in thereasonfield.
-
removeFromCRL
public static final ENUMERATED removeFromCRL
ACRLReason, which can be used in thereasonfield.
-
privilegeWithdrawn
public static final ENUMERATED privilegeWithdrawn
ACRLReason, which can be used in thereasonfield.
-
aACompromise
public static final ENUMERATED aACompromise
ACRLReason, which can be used in thereasonfield.
-
-
Constructor Detail
-
RevokeRequest
@Deprecated public RevokeRequest(ANY issuerName, INTEGER serialNumber, ENUMERATED reason, OCTET_STRING passphrase, UTF8String comment)
Deprecated.This constructor is obsolete now thatinvalidityDatehas been added to the class.Constructs a newRevokeRequestfrom its components, omitting theinvalidityDatefield.- Parameters:
issuerName- TheissuerNamefield.serialNumber- TheserialNumberfield.reason- Thereasonfield. The constants defined in this class may be used.passphrase- Thepassphrasefield. This field is optional, sonullmay be used.comment- Thecommentfield. This field is optional, sonullmay be used.
-
RevokeRequest
public RevokeRequest(ANY issuerName, INTEGER serialNumber, ENUMERATED reason, GeneralizedTime invalidityDate, OCTET_STRING passphrase, UTF8String comment)
Constructs a newRevokeRequestfrom 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.passphrase- Thepassphrasefield. This field is optional, sonullmay be used.comment- Thecommentfield. This field is optional, sonullmay be used.
-
-
Method Detail
-
getIssuerName
public ANY getIssuerName()
Returns theissuerNamefield as an ANY.
-
getSerialNumber
public INTEGER getSerialNumber()
Returns theserialNumberfield.
-
getReason
public ENUMERATED 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
public GeneralizedTime getInvalidityDate()
Returns theinvalidityDatefield. Returnsnullif the field is not present.
-
getSharedSecret
public OCTET_STRING getSharedSecret()
Returns thepassphrasefield. Returnsnullif the field is not present.
-
getComment
public UTF8String getComment()
Returns thecommentfield. Returnsnullif the field is not present.
-
getTag
public Tag 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
public void encode(java.io.OutputStream ostream) throws java.io.IOExceptionDescription copied from interface:ASN1ValueWrite this value's DER encoding to an output stream using its own base tag.
-
-