java.lang.Object | ||
↳ | sun.security.x509.Extension | |
↳ | sun.security.x509.CRLReasonCodeExtension |
The reasonCode is a non-critical CRL entry extension that identifies the reason for the certificate revocation. CAs are strongly encouraged to include reason codes in CRL entries; however, the reason code CRL entry extension should be absent instead of using the unspecified (0) reasonCode value.
The ASN.1 syntax for this is:
id-ce-cRLReason OBJECT IDENTIFIER ::= { id-ce 21 } -- reasonCode ::= { CRLReason } CRLReason ::= ENUMERATED { unspecified (0), keyCompromise (1), cACompromise (2), affiliationChanged (3), superseded (4), cessationOfOperation (5), certificateHold (6), removeFromCRL (8), privilegeWithdrawn (9), aACompromise (10) }
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | AA_COMPROMISE | ||||||||||
int | AFFLIATION_CHANGED | ||||||||||
int | CA_COMPROMISE | ||||||||||
int | CERTIFICATE_HOLD | ||||||||||
int | CESSATION_OF_OPERATION | ||||||||||
int | KEY_COMPROMISE | ||||||||||
String | NAME | Attribute name and Reason codes | |||||||||
int | PRIVILEGE_WITHDRAWN | ||||||||||
String | REASON | ||||||||||
int | REMOVE_FROM_CRL | ||||||||||
int | SUPERSEDED | ||||||||||
int | UNSPECIFIED |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a CRLReasonCodeExtension with the passed in reason.
| |||||||||||
Create a CRLReasonCodeExtension with the passed in reason.
| |||||||||||
Create the extension from the passed DER encoded value of the same.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Delete the attribute value.
| |||||||||||
Write the extension to the DerOutputStream.
| |||||||||||
Get the attribute value.
| |||||||||||
Return an enumeration of names of attributes existing within this
attribute.
| |||||||||||
Return the name of this attribute.
| |||||||||||
Set the attribute value.
| |||||||||||
Returns a printable representation of the Reason code.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
Create a CRLReasonCodeExtension with the passed in reason. Criticality automatically set to false.
reason | the enumerated value for the reason code. |
---|
IOException |
---|
Create a CRLReasonCodeExtension with the passed in reason.
critical | true if the extension is to be treated as critical. |
---|---|
reason | the enumerated value for the reason code. |
IOException |
---|
Create the extension from the passed DER encoded value of the same.
critical | true if the extension is to be treated as critical. |
---|---|
value | an array of DER encoded bytes of the actual value. |
ClassCastException | if value is not an array of bytes |
---|---|
IOException | on error. |
Write the extension to the DerOutputStream.
out | the DerOutputStream to write the extension to. |
---|
IOException | on encoding errors. |
---|
Return an enumeration of names of attributes existing within this attribute.
Set the attribute value.
name | the name of the attribute (e.g. "x509.info.key") |
---|---|
obj | the attribute object. |
IOException |
---|
Returns a printable representation of the Reason code.