|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.mozilla.jss.pkix.cmmf
Class RevRequest
java.lang.Objectorg.mozilla.jss.pkix.cmmf.RevRequest
- All Implemented Interfaces:
- ASN1Value
public class RevRequest
- extends java.lang.Object
- implements ASN1Value
- extends java.lang.Object
CMMF RevRequest.
RevRequest ::= SEQUENCE {
issuerName Name,
serialNumber INTEGER,
reason CRLReason,
invalidityDate GeneralizedTime OPTIONAL,
sharedSecret OCTET STRING OPTIONAL,
comment UTF8String OPTIONAL }
| Nested Class Summary | |
|---|---|
static class |
RevRequest.Template
A Template class for decoding a RevRequest. |
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
RevRequest(ANY issuerName,
INTEGER serialNumber,
ENUMERATED reason,
GeneralizedTime invalidityDate,
OCTET_STRING sharedSecret,
UTF8String comment)
Constructs a new RevRequest from its components. |
|
RevRequest(ANY issuerName,
INTEGER serialNumber,
ENUMERATED reason,
OCTET_STRING sharedSecret,
UTF8String comment)
Deprecated. This constructor is obsolete now that invalidityDate has been added to the class. |
|
| Method Summary | |
|---|---|
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. |
OCTET_STRING |
getPassphrase()
Deprecated. The passphrase field has been renamed sharedSecret. Call getSharedSecret instead. |
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 sharedSecret field. |
Tag |
getTag()
Returns the base tag for this type, not counting any tags that may be imposed on it by its context. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
unspecified
public static final ENUMERATED unspecified
- A
CRLReason, which can be used in thereasonfield.
keyCompromise
public static final ENUMERATED keyCompromise
- A
CRLReason, which can be used in thereasonfield.
cACompromise
public static final ENUMERATED cACompromise
- A
CRLReason, which can be used in thereasonfield.
affiliationChanged
public static final ENUMERATED affiliationChanged
- A
CRLReason, which can be used in thereasonfield.
superseded
public static final ENUMERATED superseded
- A
CRLReason, which can be used in thereasonfield.
cessationOfOperation
public static final ENUMERATED cessationOfOperation
- A
CRLReason, which can be used in thereasonfield.
certificateHold
public static final ENUMERATED certificateHold
- A
CRLReason, which can be used in thereasonfield.
removeFromCRL
public static final ENUMERATED removeFromCRL
- A
CRLReason, which can be used in thereasonfield.
privilegeWithdrawn
public static final ENUMERATED privilegeWithdrawn
- A
CRLReason, which can be used in thereasonfield.
aACompromise
public static final ENUMERATED aACompromise
- A
CRLReason, which can be used in thereasonfield.
| Constructor Detail |
|---|
RevRequest
public RevRequest(ANY issuerName, INTEGER serialNumber, ENUMERATED reason, OCTET_STRING sharedSecret, UTF8String comment)
- Deprecated. This constructor is obsolete now that
invalidityDate has been added to the class.
- Constructs a new
RevRequestfrom its components, omitting the invalidityDate field.- 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.
- Constructs a new
RevRequest
public RevRequest(ANY issuerName, INTEGER serialNumber, ENUMERATED reason, GeneralizedTime invalidityDate, OCTET_STRING sharedSecret, UTF8String comment)
- Constructs a new
RevRequestfrom 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, so null may be used.sharedSecret- ThesharedSecretfield. This field is optional, sonullmay be used.comment- Thecommentfield. This field is optional, sonullmay be used.
| Method Detail |
|---|
getIssuerName
public ANY getIssuerName()
- Returns the
issuerNamefield as an ANY.
getSerialNumber
public INTEGER getSerialNumber()
- Returns the
serialNumberfield.
getReason
public ENUMERATED getReason()
- Returns the
reasonfield, 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 the invalidityDate field. Returns null
if the field is not present.
getPassphrase
public OCTET_STRING getPassphrase()
- Deprecated. The passphrase field has been renamed
sharedSecret. Call getSharedSecret instead.
- Returns the
passphrasefield. Returnsnullif the field is not present. - Returns the
getSharedSecret
public OCTET_STRING getSharedSecret()
- Returns the
sharedSecretfield. Returnsnullif the field is not present.
getComment
public UTF8String getComment()
- Returns the
commentfield. Returnsnullif 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.
- Throws:
java.io.IOException
encode
public void encode(Tag implicitTag, java.io.OutputStream ostream) throws java.io.IOException
- Description copied from interface:
ASN1Value - Write this value's DER encoding to an output stream using
an implicit tag.
- Throws:
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.mozilla.jss.pkix.cmmf.RevRequest